Skip to content
This repository has been archived by the owner on Feb 7, 2018. It is now read-only.
/ api2symfony Public archive

NOT MAINTAINED ANYMORE - PHP library to automatically generate Symfony2 controllers from API specifications (RAML, Blueprint, Swagger...)

License

Notifications You must be signed in to change notification settings

creads/api2symfony

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

58 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Api2Symfony

PHP library to automatically generate Symfony2 controllers from API specifications (RAML, Blueprint, Swagger...)

BUT... We only support the following specification formats now:

  • RAML

But we'd like to also support:

  • Blueprint
  • Swagger

Feel free to submit your PRs !

Installation

Using composer:

composer require creads/api2symfony 1.0.*@dev

Use case

//prepare RAML converter
$converter = new Creads\Api2Symfony\Converter\RamlConverter();

//prepare dumper
$dumper = new Creads\Api2Symfony\Dumper\SymfonyDumper();

//get controller models from specification
$controllers = $converter->convert('path/to/spec.raml');

//dump each controller into current directory
foreach($controllers as $controller) {
  $dumper->dump(controller);
}

Run tests

composer install --dev
php vendor/bin/phpunit

Contributors

Contributing

Feel free to contribute on github by submitting any issue or question on tracker.

About

NOT MAINTAINED ANYMORE - PHP library to automatically generate Symfony2 controllers from API specifications (RAML, Blueprint, Swagger...)

Resources

License

Stars

Watchers

Forks

Packages

No packages published