niladam/repository

This package is abandoned and no longer maintained. No replacement package was suggested.
There is no license information available for the latest version (1.1.3) of this package.

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

Installs: 5

Dependents: 0

Suggesters: 0

Security: 0

Stars: 1

Watchers: 1

Forks: 0

Open Issues: 0

pkg:composer/niladam/repository

1.1.3 2019-10-24 14:43 UTC

This package is auto-updated.

Last update: 2026-02-25 05:04:08 UTC


README

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

This package is a forked version of LazyElePHPant/repository, with the changes provided by @calvinchiulele in the pull request #2

The reason behind this fork is that it looks like @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 and @calvinchiulele.

Installation

composer require niladam/repository

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

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

php artisan make:repository NameRepository --model=User