juddling / specification-generator
Generate Laravel migrations base on specification files
Installs: 5
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 8
Forks: 0
Open Issues: 0
pkg:composer/juddling/specification-generator
Requires
- php: >=7.1
- illuminate/console: 5.4 - 5.5
- illuminate/support: 5.4 - 5.5
- myclabs/php-enum: ^1.5
- netsells/laravel-migration-generator: ^0.5
- symfony/yaml: 3.0 - 4.0
Requires (Dev)
- nunomaduro/collision: ^1.1
- phpunit/phpunit: ^6.5
README
This project parses a Swagger 2.0 specification file and generates Laravel:
- models
- routes
- requests
- model factories
- controllers
- blade form templates
- database migrations
Installation
Run:
composer require juddling/specification-generator --dev
Laravel 5.4 and below add the following service provider to config/app.php
:
\Juddling\Parserator\GeneratorServiceProvider::class,
Usage
php artisan swagger:generate spec.yaml