Skip to content

Laravel API GeneratorOne command. Your whole Laravel API.

Models, services, DTOs, policies, written tests and docs: generated in 30 seconds, with zero lock-in.

Laravel API GeneratorLaravel API Generator

30 seconds, start to finish ​

bash
composer require --dev nameless/laravel-api-generator

php artisan make:fullapi Post --fields="title:string,status:enum(draft,published)" --pest
php artisan test

Three commands, and the test suite is already green. The tests come with the API.

See it in action ​

make:fullapi generating two entities from api-schema.yaml, then php artisan test and pint --test

From one line of flags or a schema file, make:fullapi writes thirteen files per entity and registers the routes. The tests it writes pass right away, and the code passes Pint.

The make:fullapi command →

Watch the demo ​