Skip to content

Generates simple models with no dependencies from a Swagger/Open API 2.0 file

License

Notifications You must be signed in to change notification settings

sturents/swagger-php-model-generator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

58 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Swagger PHP Model Generator

Generates simple models with no dependencies from a Swagger/Open API 2.0 file

Install using composer

composer require sturents/swagger-php-model-generator

Run with:

$generator = new SwaggerGen\GenerateAll('MyNamespace', '/path/to/api.yaml', '/path/to/library/src/');
echo $generator->saved_models.' - '.$generator->saved_requests;

Or run simply from this repo using:

php example.php --yaml-path /path/to/api.yaml --model-dir /path/to/generate/models --namespace MyNamespace

About

Generates simple models with no dependencies from a Swagger/Open API 2.0 file

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages