PHPackages                             faruque-ashad/laravel-solid-repository-scaffold - 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. [Framework](/categories/framework)
4. /
5. faruque-ashad/laravel-solid-repository-scaffold

ActiveLibrary[Framework](/categories/framework)

faruque-ashad/laravel-solid-repository-scaffold
===============================================

Laravel project scaffold with SOLID &amp; Repository pattern

1.1.0(3mo ago)03MITPHPPHP ^8.0

Since Jan 20Pushed 3mo agoCompare

[ Source](https://github.com/Faruque5698/laravel-solid-repository-scaffold)[ Packagist](https://packagist.org/packages/faruque-ashad/laravel-solid-repository-scaffold)[ RSS](/packages/faruque-ashad-laravel-solid-repository-scaffold/feed)WikiDiscussions master Synced today

READMEChangelog (2)Dependencies (2)Versions (5)Used By (0)

Laravel SOLID Repository Scaffold
=================================

[](#laravel-solid-repository-scaffold)

A production-ready Laravel package to rapidly scaffold **Model, Repository, Service, and Filter** layers following **SOLID principles** and the **Repository Pattern**.

Built for clean architecture, maintainability, and scalable Laravel applications.

✅ Supports **Laravel 10, 11, and 12**

---

Features
--------

[](#features)

- One-command module scaffolding
- SOLID &amp; Repository Pattern based architecture
- Service layer abstraction
- Clean and predictable folder structure
- Prevents overwriting existing files
- Laravel auto-discovery enabled

---

Requirements
------------

[](#requirements)

- PHP `^8.0`
- Laravel `^10.0 | ^11.0 | ^12.0`

---

Installation
------------

[](#installation)

Install via Composer:

```
composer require faruque-ashad/laravel-solid-repository-scaffold
```

---

Usage
-----

[](#usage)

Generate a complete module using one command:

```
php artisan make:module Blog
```

---

Generated Structure
-------------------

[](#generated-structure)

```
app/
├── Models/
│   └── Blog.php
│
├── Repositories/
│   ├── Contracts/
│   │   ├── RepositoryInterface.php
│   │   └── BlogRepositoryInterface.php
│   └── Eloquent/
│       └── BlogRepository.php
│
├── Services/
│   └── Blog/
│       ├── BlogService.php
│       └── BlogServiceInterface.php
│
└── Helpers/
    └── Filter/
        └── BlogFilter.php

```

---

Generate Specific Layers
------------------------

[](#generate-specific-layers)

You can generate individual layers using the `--only` option:

```
php artisan make:module Blog --only=model
php artisan make:module Blog --only=repository
php artisan make:module Blog --only=service
php artisan make:module Blog --only=filter
```

---

Architecture Principles
-----------------------

[](#architecture-principles)

This package enforces:

- Single Responsibility Principle
- Dependency Inversion
- Repository Pattern
- Service Layer abstraction
- Clean separation of concerns

Each layer is isolated and testable, ensuring long-term maintainability.

---

Behavior Notes
--------------

[](#behavior-notes)

- `RepositoryInterface` is auto-generated if missing
- Existing files are never overwritten
- Filters are scaffolded but not automatically applied
- Service layer acts as the main business logic boundary

---

Ideal Use Cases
---------------

[](#ideal-use-cases)

- Large Laravel applications
- API-driven projects
- Clean architecture enforcement
- Team-based development
- Long-term maintainable codebases

---

License
-------

[](#license)

MIT License © Ashaduzzaman Faruque

###  Health Score

35

—

LowBetter than 77% of packages

Maintenance81

Actively maintained with recent releases

Popularity3

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity43

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

Every ~65 days

Total

2

Last Release

99d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/27133090?v=4)[Md. Ashaduzzaman Faruque](/maintainers/Faruque5698)[@Faruque5698](https://github.com/Faruque5698)

---

Top Contributors

[![Faruque5698](https://avatars.githubusercontent.com/u/27133090?v=4)](https://github.com/Faruque5698 "Faruque5698 (6 commits)")

### Embed Badge

![Health badge](/badges/faruque-ashad-laravel-solid-repository-scaffold/health.svg)

```
[![Health](https://phpackages.com/badges/faruque-ashad-laravel-solid-repository-scaffold/health.svg)](https://phpackages.com/packages/faruque-ashad-laravel-solid-repository-scaffold)
```

###  Alternatives

[laravel/horizon

Dashboard and code-driven configuration for Laravel queues.

4.2k95.4M306](/packages/laravel-horizon)[laravel/sail

Docker files for running a basic Laravel application.

1.9k205.7M1.3k](/packages/laravel-sail)[laravel/ai

The official AI SDK for Laravel.

1.0k3.2M194](/packages/laravel-ai)[laravel/mcp

Rapidly build MCP servers for your Laravel applications.

77022.3M151](/packages/laravel-mcp)[illuminate/routing

The Illuminate Routing package.

1419.2M3.0k](/packages/illuminate-routing)[laravel/surveyor

Static analysis tool for Laravel applications.

86121.4k13](/packages/laravel-surveyor)

PHPackages © 2026

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