PHPackages                             dev-danno/laravel-repository-pattern - 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. dev-danno/laravel-repository-pattern

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

dev-danno/laravel-repository-pattern
====================================

Repository pattern implementation with simple commands in your Laravel application.

1.0.0(1y ago)012MITPHPPHP &gt;=8.0

Since Apr 15Pushed 1y ago1 watchersCompare

[ Source](https://github.com/dev-danno/laravel-repository-pattern)[ Packagist](https://packagist.org/packages/dev-danno/laravel-repository-pattern)[ RSS](/packages/dev-danno-laravel-repository-pattern/feed)WikiDiscussions main Synced 1mo ago

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

Laravel Repository Pattern Package
----------------------------------

[](#laravel-repository-pattern-package)

[![Packagist License](https://camo.githubusercontent.com/e60623f508586f049d48cfb8396ee411b0c9bc3be174381a1893c37462a3c1e5/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4c6963656e63652d4d49542d626c7565)](http://choosealicense.com/licenses/mit/)

This package is to implement the `Repository Pattern` with Laravel. It includes the creation and register of a custom ServiceProvider. It includes the binding in the ServiceProvider. It includes the creation of Model, Interface &amp; implementation, Service class and Controller. Optional, includes creation and implementation of an Api Response Class.

Note

This package is compatible with Laravel &gt;= 9

Caution

Use this package only if you required and plan to use a `Repository Pattern` based on Interface &amp; Repository Class and dependency injection.

Installation 📌
--------------

[](#installation-)

- Require the package using composer.

```
composer require dev-danno/laravel-repository-pattern --dev
```

- Laravel uses Auto-Discovery, so it doesn't require to manually add the ServiceProvider.
- Publish the config file

```
php artisan vendor:publish --tag=repository-pattern-config
```

Usage 🧰
-------

[](#usage-)

Note

When using `interface --repository` or `model --csir` commands, it will automatically create the custom ServiceProvider &amp; register it.

- Api Response Class

```
php artisan make:response
```

- Interface with resources

```
php artisan make:interface
```

- Interface with resources, Repository class with resources and the corresponding binding.

```
php artisan make:interface --repository
```

- Model with base structure

```
php artisan make:model
```

- Model, Interface &amp; Repository with resources, Service &amp; Controller class with resources and Dependency Injection.

Note

If `ApiResponseHelper` class exists, the controllers will include it in the responses.

```
php artisan make:model --csir
```

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance48

Moderate activity, may be stable

Popularity5

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity42

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

389d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/f4d05d8f0bf704183bf1fe7afaca5abbe08285c666727aed8dde236e7440fcf3?d=identicon)[devholic](/maintainers/devholic)

---

Top Contributors

[![dev-danno](https://avatars.githubusercontent.com/u/81992086?v=4)](https://github.com/dev-danno "dev-danno (5 commits)")

---

Tags

phplaravelrepository patterndev-danno

### Embed Badge

![Health badge](/badges/dev-danno-laravel-repository-pattern/health.svg)

```
[![Health](https://phpackages.com/badges/dev-danno-laravel-repository-pattern/health.svg)](https://phpackages.com/packages/dev-danno-laravel-repository-pattern)
```

###  Alternatives

[gehrisandro/tailwind-merge-laravel

TailwindMerge for Laravel merges multiple Tailwind CSS classes by automatically resolving conflicts between them

341682.2k18](/packages/gehrisandro-tailwind-merge-laravel)[iteks/laravel-enum

A comprehensive Laravel package providing enhanced enum functionalities, including attribute handling, select array conversions, and fluent facade interactions for robust enum management in Laravel applications.

2516.7k](/packages/iteks-laravel-enum)[salmanzafar/laravel-geocode

A Laravel Library to find Lat and Long of a given Specific Address

153.9k](/packages/salmanzafar-laravel-geocode)

PHPackages © 2026

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