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

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

aidias/gelb-repository
======================

Repository structure for Laravel applications

29101PHP

Since Oct 30Pushed 5y ago1 watchersCompare

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

READMEChangelogDependenciesVersions (1)Used By (0)

GelbRepository
==============

[](#gelbrepository)

Repository structure for Laravel applications.

Getting Started
---------------

[](#getting-started)

These instructions will get you a copy of the project up and running.

### Prerequisites

[](#prerequisites)

- Laravel &gt;= 5.8
- PHP &gt;= 7.2

### Installing

[](#installing)

1. You will need [composer](https://getcomposer.org/) and a [Laravel](https://laravel.com/) project set in your development environment. Then, run the following command in terminal:

```
composer require aidias/gelb-repository
```

2. After the package installation, run:

```
php artisan gelb:repository:init
```

This will create the following GelbRepository structure in your Laravel app:

- `app\Providers\RepositoryServiceProvider.php`: This is the service provider for the repository injections.
- `app\Repositories`: It will contain all repositories related files;
- `app\Repositories\Interfaces\AbstractInterface.php`: This interface will have a common basic rules for others repositories implementation;
- `app\Repositories\Eloquent\AbstractEloquent.php`: This is the Eloquent implementation for the `AbstractInterface.php`. You can use other framework by using the this [guide](https://github.com/aidias/gelb-repository);

3. Register the `RepositoryServiceProvider` in `config\app.php` at *providers* array:

```
	'providers' => [
		...
		App\Providers\RepositoryServiceProvider::class,
		...
	],
```

### Usage

[](#usage)

1. For example, to create a `Post` repository, run:

```
php artisan gelb:make:repository Post
```

This will create the following files (if they don't exist already):

- `app\Http\Controllers\PostController.php`
- `app\Http\Requests\PostStoreRequest.php`
- `app\Http\Requests\PostUpdateRequest.php`
- `app\Repositories\Eloquent\PostEloquent.php`
- `app\Repositories\Interfaces\PostInterface.php`
- `app\Post.php`

Authors
-------

[](#authors)

- Rafael Casachi - Initial work - [Website](https://rafaelcasachi.dev)
- Cristiano Fromagio - Contributor - [GitHub](https://github.com/cristianofromagio)
- Leandro Cuminato - Contributor - [GitHub](https://github.com/LeandrodeLimaC)

License
-------

[](#license)

This project is licensed under the MIT License - see the [LICENSE.md](https://github.com/aidias/gelb-repository) file for details.

###  Health Score

21

—

LowBetter than 19% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity18

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity31

Early-stage or recently created project

 Bus Factor1

Top contributor holds 75% 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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/30b3cecf42751020b95f0856af8ea68187143af78675246210f635cce607bb1a?d=identicon)[rcasachi](/maintainers/rcasachi)

---

Top Contributors

[![rcasachi](https://avatars.githubusercontent.com/u/6841275?v=4)](https://github.com/rcasachi "rcasachi (6 commits)")[![cristianofromagio](https://avatars.githubusercontent.com/u/16294559?v=4)](https://github.com/cristianofromagio "cristianofromagio (1 commits)")[![LeandrodeLimaC](https://avatars.githubusercontent.com/u/34483410?v=4)](https://github.com/LeandrodeLimaC "LeandrodeLimaC (1 commits)")

---

Tags

eloquentgelblaravelphprepository

### Embed Badge

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

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

###  Alternatives

[doctrine/orm

Object-Relational-Mapper for PHP

10.2k285.3M6.2k](/packages/doctrine-orm)[jdorn/sql-formatter

a PHP SQL highlighting library

3.9k115.1M102](/packages/jdorn-sql-formatter)[illuminate/database

The Illuminate Database package.

2.8k52.4M9.4k](/packages/illuminate-database)[mongodb/mongodb

MongoDB driver library

1.6k64.0M546](/packages/mongodb-mongodb)[ramsey/uuid-doctrine

Use ramsey/uuid as a Doctrine field type.

90340.3M211](/packages/ramsey-uuid-doctrine)[reliese/laravel

Reliese Components for Laravel Framework code generation.

1.7k3.4M16](/packages/reliese-laravel)

PHPackages © 2026

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