{"slug": "i-created-a-laravel-package-to-generate-clean-api-modules", "title": "I created a Laravel package to generate clean API modules", "summary": "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.", "body_md": "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\n\nRepository with interface\n\nTransformer (using spatie/laravel-data)\n\nModel and migration\n\nRoutes file\n\nThe 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/)\n\nGitHub: [https://github.com/strides-hovo/Laravel-api-module](https://github.com/strides-hovo/Laravel-api-module)\n\nPackagist: [https://packagist.org/packages/strides/laravel-api-module](https://packagist.org/packages/strides/laravel-api-module)", "url": "https://wpnews.pro/news/i-created-a-laravel-package-to-generate-clean-api-modules", "canonical_source": "https://dev.to/strides_hovo/i-created-a-laravel-package-to-generate-clean-api-modules-118h", "published_at": "2026-07-25 21:24:16+00:00", "updated_at": "2026-07-25 22:00:54.987626+00:00", "lang": "en", "topics": ["developer-tools"], "entities": ["strides/laravel-api-module", "Laravel", "spatie/laravel-data"], "alternates": {"html": "https://wpnews.pro/news/i-created-a-laravel-package-to-generate-clean-api-modules", "markdown": "https://wpnews.pro/news/i-created-a-laravel-package-to-generate-clean-api-modules.md", "text": "https://wpnews.pro/news/i-created-a-laravel-package-to-generate-clean-api-modules.txt", "jsonld": "https://wpnews.pro/news/i-created-a-laravel-package-to-generate-clean-api-modules.jsonld"}}