PHPackages                             seguce92/laravel-repos - 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. [Database &amp; ORM](/categories/database)
4. /
5. seguce92/laravel-repos

ActiveLibrary[Database &amp; ORM](/categories/database)

seguce92/laravel-repos
======================

Simple repository and Controller package for Laravel 5.

v1.3.1(7y ago)0140MITPHPPHP &gt;=5.6.0

Since May 3Pushed 7y ago1 watchersCompare

[ Source](https://github.com/seguce92/laravel-repos)[ Packagist](https://packagist.org/packages/seguce92/laravel-repos)[ RSS](/packages/seguce92-laravel-repos/feed)WikiDiscussions master Synced 4w ago

READMEChangelogDependencies (1)Versions (14)Used By (0)

### Installation

[](#installation)

Install LaravelRepos as you would with any other dependency managed by Composer:

```
$ composer require seguce92/laravel-repos
```

### Configuration

[](#configuration)

After installing repo all you need is to register the `Seguce92\LaravelRepos\ServiceProvider` in your `config/app.php` configuration file:

```
'providers' => [
    // Other service providers...

    Seguce92\LaravelRepos\ServiceProvider::class,
],
```

### Creating a repository class

[](#creating-a-repository-class)

Use the `seguce92:repos` command to create your repository classes. This command will take as argument the repository class namesapce (from App) and a `--model` option which allows you to specify the full namespace of the Eloquent model to which the repository will be tied.

```
$ php artisan seguce92:repos "Repositories\FooRepository" --class="Foo" --model="App\Models\Foo"
```

OR

```
$ php artisan seguce92:repos "Repositories\FooRepository" -c "Foo" -m "App\Models\Foo"
```

The above command will generate the following repository class in the `app/Repositories` directory:

\--hashid This option use if used hashid

### Creating a controller class

[](#creating-a-controller-class)

Use the `seguce92:cont` command to create your repository classes. This command will take as argument the repository class namesapce (from App) and a `--model` option which allows you to specify the full namespace of the Eloquent model to which the repository will be tied.

```
$ php artisan seguce92:cont "Http\Controllers\FooController" --repository="App\Repositories\FooRepository" --model="foo"
```

OR

```
$ php artisan seguce92:cont "Http\Controllers\FooController" -r "App\Repositories\FooRepository" -m "foo"
```

The above command will generate the following repository class in the `app/Http/Controllers` directory:

###  Health Score

29

—

LowBetter than 57% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity65

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

Recently: every ~195 days

Total

13

Last Release

2608d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/7014932?v=4)[Sergio G. Cruz Espinoza](/maintainers/seguce92)[@seguce92](https://github.com/seguce92)

---

Top Contributors

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

---

Tags

databaselaravel5repository

### Embed Badge

![Health badge](/badges/seguce92-laravel-repos/health.svg)

```
[![Health](https://phpackages.com/badges/seguce92-laravel-repos/health.svg)](https://phpackages.com/packages/seguce92-laravel-repos)
```

###  Alternatives

[leantime/leantime

Open source project management system for non-project managers. Simple like Trello, powerful like Jira. Built with neurodiversity in mind.

11.3k4.0k](/packages/leantime-leantime)[statamic-rad-pack/runway

Eloquently manage your database models in Statamic.

137236.2k8](/packages/statamic-rad-pack-runway)[duncanmcclean/statamic-cargo

Comprehensive e-commerce addon for Statamic. Build bespoke e-commerce sites without the complexity.

3622.8k](/packages/duncanmcclean-statamic-cargo)[waad/laravel-model-metadata

A robust Laravel package for handling metadata with JSON casting, custom relation names, and advanced querying capabilities.

865.3k](/packages/waad-laravel-model-metadata)[ramadan/custom-fresh

A Laravel package to specify the tables that you do not want to drop while refreshing the database.

611.6k](/packages/ramadan-custom-fresh)[ramadan/easy-model

A Laravel package for enjoyably managing database queries.

111.6k](/packages/ramadan-easy-model)

PHPackages © 2026

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