PHPackages                             samkitano/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. [Database &amp; ORM](/categories/database)
4. /
5. samkitano/repository

ActiveLibrary[Database &amp; ORM](/categories/database)

samkitano/repository
====================

Repository Pattern for Laravel 5.2

v0.0.2(9y ago)036MITPHPPHP &gt;=5.4.0

Since Jul 4Pushed 9y ago1 watchersCompare

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

READMEChangelog (2)Dependencies (3)Versions (3)Used By (0)

Repository pattern in Laravel 5.2
=================================

[](#repository-pattern-in-laravel-52)

An implementation of [this](https://bosnadev.com/2015/03/07/using-repository-pattern-in-laravel-5/) awesome Blog article by [Bosnadev](https://bosnadev.com).

Based on [Bosnadev/Repositories](https://github.com/Bosnadev/Repositories) with some minor changes, mostly PSR-2 compliance.

You should, by all means, read the article and work it out for yourself, as the *Repository Pattern*is a very important concept to properly implement a data access layer for any medium/large scale application.

NOTE
----

[](#note)

As stated above, this package is a personal implementation of Bosniadev's for my projects and testings.

Thus, for the time being, you most definitely should use [that](https://github.com/Bosnadev/Repositories) package instead of this one, and follow it's instructions.

INSTALL
-------

[](#install)

```
composer require "samkitano/repository"
```

Usage
-----

[](#usage)

```
