PHPackages                             niladam/repository - 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. niladam/repository

AbandonedArchivedLibrary[Framework](/categories/framework)

niladam/repository
==================

Laravel package (forked) to facilitate the repository design pattern functionality across multiple projects.

1.1.3(6y ago)15PHP

Since Oct 24Pushed 6y ago1 watchersCompare

[ Source](https://github.com/niladam/repository)[ Packagist](https://packagist.org/packages/niladam/repository)[ RSS](/packages/niladam-repository/feed)WikiDiscussions master Synced today

READMEChangelog (4)DependenciesVersions (4)Used By (0)

Laravel Implementation of Repository Pattern (forked from [LazyElePHPant/repository](https://github.com/LazyElePHPant/repository))
==================================================================================================================================

[](#laravel-implementation-of-repository-pattern-forked-from-lazyelephpantrepository)

Laravel package to facilitate repository design pattern implementation across multiple projects.

This package is a forked version of [LazyElePHPant/repository](https://github.com/LazyElePHPant/repository), with the changes provided by [@calvinchiulele](https://github.com/calvinchiulele) in the pull request [\#2](https://github.com/LazyElePHPant/repository/pull/2)

The reason behind this fork is that it looks like [@LazyElePHPant](https://github.com/LazyElePHPant) ignored or didn't have time to handle the pull request and i wanted to use this in a project of mine.

Contributing to this is welcome, but this is mainly for may own personal use. Since i didn't want to clash with lazy's namespacing, this fork's namespace has been changed.

Credits for this package (at least for now) are entirely [@LazyElePHPant](https://github.com/LazyElePHPant) and [@calvinchiulele](https://github.com/calvinchiulele).

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

[](#installation)

```
composer require niladam/repository

```

Plain Repository Class
----------------------

[](#plain-repository-class)

To generate a repository class without a specific model simply run the following command:

```
php artisan make:repository NameRepository

```

Model Repository Class
----------------------

[](#model-repository-class)

To generate a repository class for a specific model you may specify by defining the `--model`:

```
php artisan make:repository NameRepository --model=User

```

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity60

Established project with proven stability

 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 ~0 days

Total

3

Last Release

2389d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/9ccbd5f80c8e1c691272c1d4652e4da750d3ba4e08bcc2a8f9801f7f3aadf975?d=identicon)[niladam](/maintainers/niladam)

---

Top Contributors

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

---

Tags

laravelrepositoryrepository-pattern

### Embed Badge

![Health badge](/badges/niladam-repository/health.svg)

```
[![Health](https://phpackages.com/badges/niladam-repository/health.svg)](https://phpackages.com/packages/niladam-repository)
```

###  Alternatives

[laravel/telescope

An elegant debug assistant for the Laravel framework.

5.2k67.8M190](/packages/laravel-telescope)[spiral/roadrunner

RoadRunner: High-performance PHP application server and process manager written in Go and powered with plugins

8.4k12.2M84](/packages/spiral-roadrunner)[nolimits4web/swiper

Most modern mobile touch slider and framework with hardware accelerated transitions

41.8k177.2k1](/packages/nolimits4web-swiper)[laravel/dusk

Laravel Dusk provides simple end-to-end testing and browser automation.

1.9k36.7M256](/packages/laravel-dusk)[laravel/prompts

Add beautiful and user-friendly forms to your command-line applications.

708181.8M591](/packages/laravel-prompts)[cakephp/chronos

A simple API extension for DateTime.

1.4k47.7M121](/packages/cakephp-chronos)

PHPackages © 2026

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