weburnit / swagger-generator
Installs: 65
Dependents: 0
Suggesters: 0
Security: 0
Stars: 2
Watchers: 3
Forks: 2
Open Issues: 1
Type:project
Requires
- php: ~7.0
- gossi/php-code-generator: ^0.4.1
- illuminate/console: ^5.1
- symfony/filesystem: v3.2.2
- symfony/finder: ~2|~3
Requires (Dev)
- phpunit/phpunit: ^5.7
This package is auto-updated.
Last update: 2024-10-29 04:58:53 UTC
README
#Install
namespace YourNamespace\Console; use Laravel\Lumen\Console\Kernel as ConsoleKernel; use Weburnit\Console\Commands\SwaggerModelGenerator; /** * Class Kernel */ class Kernel extends ConsoleKernel { /** * The Artisan commands provided by your application. * * @var array */ protected $commands = [ SwaggerModelGenerator::class, ... ]; }
#Usage
- Be able to create Class, Class Description
- Generate every single field/property and data type per field reflects Laravel Validation.
- In case field has multiple validations like
"platformCode" => "string|max:20"
, first data type must bemax
. Then command line will ask you value of max(in this case is 20). Then it will ask you type of value asstring
in this case.