Compatible with the OpenAPI Specification version 3. formerly known as Swagger. Enhanced errors messages with hints and context. Generate OpenAPI documentation for your RESTful API using attributes or annotations. swagger-php allows to generate specs either for OpenAPI 3.0.0 or OpenAPI 3.1.0. By default the spec will be in version 3.0.0. The command-line option, version may be used to change this to 3.1.0. For cli usage from anywhere install swagger-php globally and make sure to place the ~/.composer/vendor/bin directory in your PATH so the open API executable can be located by your system. Generate the OpenApi annotation object from a JSON string, which makes it easier to manipulate objects programmatically. Generate the swagger documentation to a static JSON file.

Features

  • Compatible with the OpenAPI 3.0 and 3.1 specification
  • Extracts information from code & existing phpdoc annotations
  • Command-line interface available
  • Documentation site with a getting started guide
  • Exceptional error reporting (with hints, context)
  • As of PHP 8.1 all annotations are also available as PHP attributes

Project Samples

Project Activity

See All Activity >

License

Apache License V2.0

Follow swagger-php

swagger-php Web Site

Other Useful Business Software
Get full visibility and control over your tasks and projects with Wrike. Icon
Get full visibility and control over your tasks and projects with Wrike.

A cloud-based collaboration, work management, and project management software

Wrike offers world-class features that empower cross-functional, distributed, or growing teams take their projects from the initial request stage all the way to tracking work progress and reporting results.
Learn More
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of swagger-php!

Additional Project Details

Registered

2022-02-03