PHPackages                             anyuzhe/repositories - 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. anyuzhe/repositories

ActiveLibrary[Framework](/categories/framework)

anyuzhe/repositories
====================

Laravel Repositories

10

Since Dec 15Compare

[ Source](https://github.com/anyuzhe/repostory)[ Packagist](https://packagist.org/packages/anyuzhe/repositories)[ RSS](/packages/anyuzhe-repositories/feed)WikiDiscussions Synced 2w ago

READMEChangelogDependenciesVersions (1)Used By (0)

Laravel Repositories
====================

[](#laravel-repositories)

[![Build Status](https://camo.githubusercontent.com/1a64ef3b411f658eb8ce84be7694583e063c0e088295384ad56e84670f495759/68747470733a2f2f7472617669732d63692e6f72672f416e79757a68652f7265706f7369746f72792e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/Anyuzhe/repository)[![SensioLabsInsight](https://camo.githubusercontent.com/246fe4c9910605216296329f0aceeda278d5a3e7c6c0bda076f504a57cec7fd9/68747470733a2f2f696d672e736869656c64732e696f2f73656e73696f6c6162732f692f66333965366463372d313336342d343831642d623732322d3834313362646333323030662e7376673f7374796c653d666c6174)](https://insight.sensiolabs.com/projects/f39e6dc7-1364-481d-b722-8413bdc3200f)[![Latest Stable Version](https://camo.githubusercontent.com/959319a6fe8eff823b529dbb8fafb95bff17c0f5c6eed7b4acf4ecddae2a757f/68747470733a2f2f706f7365722e707567782e6f72672f416e79757a68652f7265706f7369746f726965732f762f737461626c65)](https://packagist.org/packages/Anyuzhe/repositories)[![Total Downloads](https://camo.githubusercontent.com/5e40284d1a6bf21d6b7f6676d60931ee6512d5c58c5b363eab12dd1a3c8715c6/68747470733a2f2f706f7365722e707567782e6f72672f416e79757a68652f7265706f7369746f726965732f646f776e6c6f616473)](https://packagist.org/packages/Anyuzhe/repositories)[![Monthly Downloads](https://camo.githubusercontent.com/0291bbb5df92542399142c98513898500428d353f7166acf6413b981bfe6e22f/68747470733a2f2f706f7365722e707567782e6f72672f416e79757a68652f7265706f7369746f726965732f642f6d6f6e74686c79)](https://packagist.org/packages/Anyuzhe/repositories)[![License](https://camo.githubusercontent.com/256166874be74f1da5d11542dfeff1136868d2c6598ea23ad1dbabf007e61eb9/68747470733a2f2f706f7365722e707567782e6f72672f416e79757a68652f7265706f7369746f726965732f6c6963656e7365)](https://packagist.org/packages/Anyuzhe/repositories)

Laravel Repositories is a package for Laravel 5 which is used to abstract the database layer. This makes applications much easier to maintain.

Installation
------------

[](#installation)

Run the following command from you terminal:

```
composer require "Anyuzhe/repositories: 0.*"
```

or add this to require section in your composer.json file:

```
"Anyuzhe/repositories": "0.*"

```

then run `composer update`

Usage
-----

[](#usage)

First, create your repository class. Note that your repository class MUST extend `Anyuzhe\Repositories\Eloquent\Repository` and implement model() method

```
