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

ActiveLibrary[Framework](/categories/framework)

aammui/l9-repository
====================

Repository patterns for Laravel

v0.0.5(2y ago)0129[3 issues](https://github.com/bedus-creation/l9-repository/issues)PHPPHP ^8.1

Since Nov 12Pushed 2y ago1 watchersCompare

[ Source](https://github.com/bedus-creation/l9-repository)[ Packagist](https://packagist.org/packages/aammui/l9-repository)[ RSS](/packages/aammui-l9-repository/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (5)Dependencies (5)Versions (11)Used By (0)

Laravel L9-Repository
=====================

[](#laravel-l9-repository)

A basic data lever wrapper for Laravel's Eloquent model with the features such as Transformers, Filters, Caching etc.

### Installation

[](#installation)

```
composer require aammui/l9-repository
```

### Uses

[](#uses)

- [Transformers](https://github.com/bedus-creation/l9-repository#transformers)

### Transformers

[](#transformers)

First define a `UserTransformer`

```
class UserTransformer extends TransformerAbstract
{
    public function transform(User $user)
    {
        return [
            'id' => $user->id,
            'name' => $user->name
        ];
    }
}
```

and use it as,

```
app()->make(UserRepository::class)
    ->setTransformer(UserTransformer::class)
    ->get();
```

Or use with custom includes,

```
app()->make(UserRepository::class)
    ->setTransformer(UserTransformer::class, function(\League\Fractal\Manager $manager){
        $manager->parseIncludes('role');
    })
    ->get();
```

and add `role` to `availableIncludes` in `UserTransformer`

```
protected array $availableIncludes = [
    'role'
];

public function transform(User $user){...}

public function includeRole(User $user): Item
{
    $author = $user->role;

    return $this->item($author, new class extends TransformerAbstract {
        public function transform(Role $role): array
        {
            return [
                'id'    => $role->id,
                'label' => $role->label,
            ];
        }
    });
}
```

Credits
-------

[](#credits)

- [Bedram Tamang](https://github.com/bedus-creation/)
- [All Contributors](../../contributors)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity51

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 56.5% 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 ~72 days

Total

5

Last Release

989d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/cf8c945207e550cfcd88c4de4bb813229578072eb2bdf5a96238efe6ce3ae0c8?d=identicon)[bedus\_creation](/maintainers/bedus_creation)

---

Top Contributors

[![bedus-creation](https://avatars.githubusercontent.com/u/25701752?v=4)](https://github.com/bedus-creation "bedus-creation (13 commits)")[![jobins-bedram](https://avatars.githubusercontent.com/u/221937772?v=4)](https://github.com/jobins-bedram "jobins-bedram (10 commits)")

---

Tags

laravelrepository patternaammui

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Type Coverage Yes

### Embed Badge

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

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

###  Alternatives

[laravel/passport

Laravel Passport provides OAuth2 server support to Laravel.

3.4k85.0M531](/packages/laravel-passport)[laravel/cashier

Laravel Cashier provides an expressive, fluent interface to Stripe's subscription billing services.

2.5k25.9M107](/packages/laravel-cashier)[laravel/scout

Laravel Scout provides a driver based solution to searching your Eloquent models.

1.7k49.4M479](/packages/laravel-scout)[laravel/pulse

Laravel Pulse is a real-time application performance monitoring tool and dashboard for your Laravel application.

1.7k12.1M99](/packages/laravel-pulse)[laravel/pennant

A simple, lightweight library for managing feature flags.

57311.1M53](/packages/laravel-pennant)[laravel/cashier-paddle

Cashier Paddle provides an expressive, fluent interface to Paddle's subscription billing services.

264778.4k3](/packages/laravel-cashier-paddle)

PHPackages © 2026

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