# I created a Laravel package to generate clean API modules

> Source: <https://dev.to/strides_hovo/i-created-a-laravel-package-to-generate-clean-api-modules-118h>
> Published: 2026-07-25 21:24:16+00:00

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/](https://strides-hovo.github.io/Laravel-api-module/)

GitHub: [https://github.com/strides-hovo/Laravel-api-module](https://github.com/strides-hovo/Laravel-api-module)

Packagist: [https://packagist.org/packages/strides/laravel-api-module](https://packagist.org/packages/strides/laravel-api-module)
