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

ActiveLibrary[Framework](/categories/framework)

eilander/repository
===================

Flexible Laravel 5 repository package.

v5.8.0(6y ago)0149[1 PRs](https://github.com/markeilander/repository/pulls)MITPHPPHP &gt;=5.5.9

Since Feb 16Pushed 6y agoCompare

[ Source](https://github.com/markeilander/repository)[ Packagist](https://packagist.org/packages/eilander/repository)[ RSS](/packages/eilander-repository/feed)WikiDiscussions master Synced 4w ago

READMEChangelog (10)Dependencies (1)Versions (16)Used By (0)

Laravel 5 Repository
====================

[](#laravel-5-repository)

An laravel implementation of the Repository Pattern

```
The repository mediates between the data source layer and the business layers of the application. It queries the data source for the data, maps the data from the data source to a business entity, and persists changes in the business entity to the data source. A repository separates the business logic from the interactions with the underlying data source or Web service.

```

Further reading:

### Table of contents

[](#table-of-contents)

\[TOC\]

Usage
-----

[](#usage)

### Step 1: Add the Service Provider

[](#step-1-add-the-service-provider)

In your `config/app.php` add `Eilander\Repository\Providers\RepositoryServiceProvider:class` to the end of the `providers` array:

```
