PHPackages                             amptech/laravel-solid-structure - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. amptech/laravel-solid-structure

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

amptech/laravel-solid-structure
===============================

Generador de arquitectura SOLID para Laravel (Repository Pattern, Services, DTOs)

1.0.0(4mo ago)016MITPHPPHP ^7.4|^8.0|^8.1|^8.2|^8.3

Since Jan 5Pushed 4mo agoCompare

[ Source](https://github.com/oamperezp/laravel-solid-structure)[ Packagist](https://packagist.org/packages/amptech/laravel-solid-structure)[ Docs](https://github.com/oamperezp/laravel-solid-structure)[ RSS](/packages/amptech-laravel-solid-structure/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependenciesVersions (2)Used By (0)

Laravel SOLID Structure
=======================

[](#laravel-solid-structure)

> Generador de arquitectura SOLID para Laravel con Repository Pattern y Service Layer.

[![PHP Version](https://camo.githubusercontent.com/83dd395020c37276225039739320f6c8e7e99963ab21ee3d09282cb48dad2a60/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5048502d382e312532422d626c7565)](https://php.net)[![Laravel](https://camo.githubusercontent.com/e318ae4be28139e4db425542a2f219c31be670221baae920b3fb42e6784d7cc7/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4c61726176656c2d31302e7825323025374325323031312e782d726564)](https://laravel.com)[![License](https://camo.githubusercontent.com/784362b26e4b3546254f1893e778ba64616e362bd6ac791991d2c9e880a3a64e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4c6963656e73652d4d49542d677265656e2e737667)](LICENSE)

✨ Características
-----------------

[](#-características)

- 🏗️ **Arquitectura SOLID** - Repository Pattern con Service Layer
- 🔒 **Validación robusta** - Form Requests automáticos
- 🧪 **Tests incluidos** - Feature tests completos
- ⚡ **Detección inteligente** - Campos y tipos desde tu modelo
- 🎯 **Listo para usar** - Sin configuración adicional

📦 Instalación
-------------

[](#-instalación)

```
composer require amptech/laravel-solid-structure
```

🚀 Uso Rápido
------------

[](#-uso-rápido)

### Genera la arquitectura SOLID

[](#genera-la-arquitectura-solid)

```
php artisan make:solid Product --test
```

**Crea automáticamente:**

- Controller (REST completo)
- Service (lógica de negocio)
- Repository + Interface
- Form Requests (Store/Update)
- Tests Feature

### Registra las rutas

[](#registra-las-rutas)

```
// routes/api.php
use App\Http\Controllers\ProductController;

Route::apiResource('products', ProductController::class);
```

¡Listo! Ya tienes un CRUD completo funcionando.

⚙️ Opciones Avanzadas
---------------------

[](#️-opciones-avanzadas)

```
# Con ruta personalizada
php artisan make:solid Product --path=V1/Admin

# Paginación personalizada
php artisan make:solid Product --paginate=20

# Sobrescribir archivos
php artisan make:solid Product --force
```

📋 Requisitos
------------

[](#-requisitos)

- PHP 8.1+
- Laravel 10.x o 11.x

🤝 Contribuir
------------

[](#-contribuir)

Las contribuciones son bienvenidas. Por favor, abre un issue o pull request.

📄 Licencia
----------

[](#-licencia)

Este proyecto está licenciado bajo la Licencia MIT.

👨‍💻 Autor
---------

[](#‍-autor)

**Oscar Amperez**

- Email:

---

Si este paquete te fue útil, considera darle una ⭐ en GitHub

###  Health Score

36

—

LowBetter than 82% of packages

Maintenance75

Regular maintenance activity

Popularity7

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity49

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

133d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/50e573d12851b8ba037dc0798f1d489b2800234d49ea57a548c2468f0dacc326?d=identicon)[oamperez](/maintainers/oamperez)

---

Top Contributors

[![oamperez](https://avatars.githubusercontent.com/u/36061407?v=4)](https://github.com/oamperez "oamperez (1 commits)")

---

Tags

laravelservicearchitecturerepositorypatterndtosolid

### Embed Badge

![Health badge](/badges/amptech-laravel-solid-structure/health.svg)

```
[![Health](https://phpackages.com/badges/amptech-laravel-solid-structure/health.svg)](https://phpackages.com/packages/amptech-laravel-solid-structure)
```

###  Alternatives

[getsolaris/laravel-make-service

A MVCS pattern create a service command for Laravel 5+

81161.3k](/packages/getsolaris-laravel-make-service)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
