Skip to content

Example Reference ​

This page is generated automatically from the swagger-php sources.

For improvements head over to GitHub and create a PR 😉

Api ​

A simple API example uing enums, traits and callbacks.

Colour.php ​

NameTrait.php ​

OpenApiSpec.php ​

Product.php ​

ProductController.php ​

Server.php ​

Petstore ​

Classic petstore sample app. Uses OAuth

Controllers/PetController.php ​

Controllers/StoreController.php ​

Controllers/UserController.php ​

Models/ApiResponse.php ​

Models/Category.php ​

Models/Order.php ​

Models/Pet.php ​

Models/PetRequestBody.php ​

Models/Tag.php ​

Models/User.php ​

Models/UserArrayRequestBody.php ​

Petstore.php ​

Security.php ​

Polymorphism ​

Demonstrates the use of Discriminator

AbstractResponsible.php ​

Controller.php ​

Employee.php ​

Fl.php ​

Request.php ​