DEV Community

Hovik Ghambaryan
Hovik Ghambaryan

Posted on

I created a Laravel package to generate clean API modules

Hi everyone,I just released my first package — strides/laravel-api-module.The idea was simple: stop copying the same boilerplate code every time you create a new API resource. So I made a generator that creates a clean module structure using the Action + Repository + Transformer pattern.What you get with one command:Action classes
Repository with interface
Transformer (using spatie/laravel-data)
Model and migration
Routes file

The package is well documented with examples.Would love to hear your feedback and suggestions!Links:Documentation: https://strides-hovo.github.io/Laravel-api-module/
GitHub: https://github.com/strides-hovo/Laravel-api-module
Packagist: https://packagist.org/packages/strides/laravel-api-module

Top comments (0)