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

ActiveLibrary

sabirepo/repository
===================

Laravel repository

v2.0.0(5y ago)3471MITPHPPHP ^7.2.5

Since Jul 15Pushed 5y ago3 watchersCompare

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

READMEChangelogDependenciesVersions (6)Used By (0)

Laravel-repository
==================

[](#laravel-repository)

**Laravel/lumen****laravel-repository/lumen-repository**^6.\*^dev`sabirepo/repository` is a Laravel package which created to manage your large Laravel app using repository. Repository is like a Laravel package. This package is supported and tested in Laravel 5.\*

With one big added bonus that the original package didn't have: **tests**.

Install
-------

[](#install)

To install through Composer, by run the following command:

```
composer require sabirepo/repository
```

Lumen config
------------

[](#lumen-config)

```
 //bootstrap\app.php
 Add : $app->register(Sabirepo\Repository\Providers\RepositoryServiceProvider::class);
```

Laravel config
--------------

[](#laravel-config)

```
  //config\app.php
 'providers' => [
	...
	Sabirepo\Repository\Providers\RepositoryServiceProvider::class,
 ],

 'aliases' => [
	...
	'Repo' => Sabirepo\Repository\Facades\Repository::class,
 ],
```

Setup repository
----------------

[](#setup-repository)

```
	// Create folder default to app\repositories
	php artisan make:repository {name} {--m}

    // example: php artisan make:repository User

    // publish vendor
    php artisan vendor:publish --tag=repository

	// register provider
    // add bindings to config/repository.php
    /*
     * Default binding
     * [ RepoInterface::class => Repository::class ]
     */
    'bindings' => [
        \App\Repositories\User\UserInterface::class => \App\Repositories\User\UserRepository::class,
    ],

```

Publish config
--------------

[](#publish-config)

```
	php artisan vendor:publish --tag=repository

```

The package will automatically register a service provider and alias.

Optionally, publish the package's configuration file by running:

### Autoloading

[](#autoloading)

**Tip: don't forget to run `composer dump-autoload` afterwards.**

Documentation
-------------

[](#documentation)

### Visit: [Website](https://instance.asia)

[](#visit-website)

### Response resource

[](#response-resource)

```
use Sabirepo\Repository\Facades\Repository as Repo;
/**
 * $data: String | Object | Array
 * response interface: $data['status'] | $data['messages'] | $data['body']
*/
return Repo::response($data);

```

You'll find installation instructions and full documentation on : comming son....

Credits ....
------------

[](#credits-)

About sabirepo/repository
-------------------------

[](#about-sabireporepository)

sabirepo/repository is a freelance web developer specialising on the Laravel/lumen framework.

License
-------

[](#license)

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

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity54

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 90% 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 ~1 days

Total

5

Last Release

2122d ago

Major Versions

v1.0.9 → v2.0.02020-07-18

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/39073978?v=4)[lavacs](/maintainers/lavacs)[@lavacs](https://github.com/lavacs)

---

Top Contributors

[![tanfabbi](https://avatars.githubusercontent.com/u/48237204?v=4)](https://github.com/tanfabbi "tanfabbi (9 commits)")[![lavacs](https://avatars.githubusercontent.com/u/39073978?v=4)](https://github.com/lavacs "lavacs (1 commits)")

### Embed Badge

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

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

PHPackages © 2026

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