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 2w 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

2562d 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

[statamic-rad-pack/runway

Eloquently manage your database models in Statamic.

135212.4k7](/packages/statamic-rad-pack-runway)[onecentlin/laravel-adminer

Laravel Adminer Database Manager

261521.8k3](/packages/onecentlin-laravel-adminer)[nayjest/grids

Grids for Laravel 4 &amp; Laravel 5 frameworks

200153.6k1](/packages/nayjest-grids)[waad/laravel-model-metadata

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

854.1k](/packages/waad-laravel-model-metadata)[aranyasen/laravel-adminer

Adminer (by Jakub Vrana) wrapper for Laravel 9+

2099.9k](/packages/aranyasen-laravel-adminer)[maxim-oleinik/blade-migrations-laravel

An intelligent alternative version of Laravel Database Migrations - uses raw-sql syntax, transactions, auto-rollback, UP-DOWN-UP testing

242.3k](/packages/maxim-oleinik-blade-migrations-laravel)

PHPackages © 2026

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