2017 © Pedro Peláez
 

library api2symfony

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

image

creads/api2symfony

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

  • Tuesday, July 26, 2016
  • by pitpit
  • Repository
  • 1 Watchers
  • 14 Stars
  • 728 Installations
  • PHP
  • 2 Dependents
  • 0 Suggesters
  • 5 Forks
  • 6 Open issues
  • 6 Versions
  • 0 % Grown

The README.md

Api2Symfony

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

BUT... We only support the following specification formats now:, (*2)

  • RAML

But we'd like to also support:, (*3)

  • Blueprint
  • Swagger

Feel free to submit your PRs !, (*4)

Installation

Using composer:, (*5)

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., (*6)

The Versions

26/07 2016

dev-master

9999999-dev http://creads.fr

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

  Sources   Download

MIT

The Requires

 

The Development Requires

api php symfony converter raml

26/07 2016

1.1.2

1.1.2.0 http://creads.fr

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

  Sources   Download

MIT

The Requires

 

The Development Requires

api php symfony converter raml

19/06 2015

1.1.1

1.1.1.0 http://creads.fr

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

  Sources   Download

MIT

The Requires

 

The Development Requires

api php symfony converter raml

26/01 2015

1.1.0

1.1.0.0 http://creads.fr

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

  Sources   Download

MIT

The Requires

 

The Development Requires

api php symfony converter raml

22/12 2014

1.0.1

1.0.1.0 http://creads.fr

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

  Sources   Download

MIT

The Requires

 

The Development Requires

api php symfony converter raml

12/12 2014

1.0.0

1.0.0.0 http://creads.fr

PHP library which provide generation of Symfony mockup controllers based on spec

  Sources   Download

MIT

The Requires

 

The Development Requires

api php symfony converter raml