cd /news/developer-tools/i-created-a-laravel-package-to-gener… · home topics developer-tools article
[ARTICLE · art-73721] src=dev.to ↗ pub= topic=developer-tools verified=true sentiment=↑ positive

I created a Laravel package to generate clean API modules

A developer released strides/laravel-api-module, a Laravel package that generates clean API module structures using the Action + Repository + Transformer pattern. The package creates action classes, repository with interface, transformer, model, migration, and routes file with a single command.

read1 min views1 publishedJul 25, 2026

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](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)
── more in #developer-tools 4 stories · sorted by recency
── more on @strides/laravel-api-module 3 stories trending now
sponsored brought to you by zahid.host 4,200+ EU-deployed projects
reading about agents? ship yours in a single git push.

Run your AI side-project on zahid.host

EU-based hosting, git-push deploys, automatic HTTPS, no cold starts. Free tier with a custom domain — perfect for shipping the agent you just read about.

$git push zahid main
Live at https://your-agent.zahid.host
Get free account → Pricing
from €0/mo · no card required
LIVE [news/i-created-a-laravel-…] indexed:0 read:1min 2026-07-25 ·