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

ActiveLibrary[Framework](/categories/framework)

instance-code/repository
========================

A simple way to access repositories and services with laravel framework

v2.0.1(1y ago)86382MITPHP

Since Oct 15Pushed 1y agoCompare

[ Source](https://github.com/instance-code/repository)[ Packagist](https://packagist.org/packages/instance-code/repository)[ RSS](/packages/instance-code-repository/feed)WikiDiscussions master Synced 5d ago

READMEChangelogDependenciesVersions (8)Used By (0)

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

[](#laravel-repository)

**Laravel/lumen****laravel-repository/lumen-repository**^11.\*^dev`instance-code/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 instance-code/repository
```

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

[](#lumen-config)

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

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

[](#laravel-config)

```
  //bootstrap\app.php
 ->withProviders([
    \InstanceCode\Repository\Providers\CommandServiceProvider::class,
])
```

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

[](#setup-repository)

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

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

  Create Service
  // Create folder default to app\repositories
	php artisan make:service {name}

  // example: php artisan make:repository User
  // example: php artisan make:service User

  // add bindings to App\Providers\RepositoryServiceProvider Or config/repository.php to register repository
  /*
   * 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 InstanceCode\Repository\Facades\UseRepository;
/**
 * $data: String | Object | Array
 * response interface: $data['status'] | $data['messages'] | $data['body']
*/
return UseRepository::response($data);

```

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

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

[](#credits-)

About Instance-code/repository
------------------------------

[](#about-instance-coderepository)

instance-code/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

36

—

LowBetter than 82% of packages

Maintenance44

Moderate activity, may be stable

Popularity20

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity59

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 71.4% 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 ~267 days

Total

7

Last Release

436d ago

Major Versions

v1.0.5 → v2.0.02025-03-04

### Community

Maintainers

![](https://www.gravatar.com/avatar/db9775d80effb77ee93fd8d54b28356f327b9e81550e40762504283818b0bdb8?d=identicon)[instanceasia](/maintainers/instanceasia)

---

Top Contributors

[![tanfabbi](https://avatars.githubusercontent.com/u/48237204?v=4)](https://github.com/tanfabbi "tanfabbi (10 commits)")[![instanceasia](https://avatars.githubusercontent.com/u/72794061?v=4)](https://github.com/instanceasia "instanceasia (4 commits)")

---

Tags

laravel-repositoryinstance-codephp repository

### Embed Badge

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

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

###  Alternatives

[laravel/telescope

An elegant debug assistant for the Laravel framework.

5.2k67.8M192](/packages/laravel-telescope)[spiral/roadrunner

RoadRunner: High-performance PHP application server and process manager written in Go and powered with plugins

8.4k12.2M84](/packages/spiral-roadrunner)[nolimits4web/swiper

Most modern mobile touch slider and framework with hardware accelerated transitions

41.8k177.2k1](/packages/nolimits4web-swiper)[laravel/prompts

Add beautiful and user-friendly forms to your command-line applications.

708181.8M596](/packages/laravel-prompts)[cakephp/chronos

A simple API extension for DateTime.

1.4k47.7M121](/packages/cakephp-chronos)[laravel/pail

Easily delve into your Laravel application's log files directly from the command line.

91245.3M590](/packages/laravel-pail)

PHPackages © 2026

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