PHPackages                             iphuongtt/genie - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. iphuongtt/genie

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

iphuongtt/genie
===============

2.1.5(7y ago)142MITPHP

Since Nov 4Pushed 7y ago1 watchersCompare

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

READMEChangelog (5)Dependencies (4)Versions (22)Used By (0)

Genie
=====

[](#genie)

[![Latest Version](https://camo.githubusercontent.com/c7fc478cae5beaf90c4e38302484d138627105e95e44387fb6e2737922bfedbb/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f72656c656173652f697068756f6e6774742f67656e69652e7376673f7374796c653d666c61742d737175617265)](https://github.com/iphuongtt/genie/releases)[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE)[![Build Status](https://camo.githubusercontent.com/4684d410cf91fbd69d742d4c4caaf996b0fda8627412e79758b0ca5164ade650/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f697068756f6e6774742f67656e69652f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/iphuongtt/genie)[![Coverage Status](https://camo.githubusercontent.com/56cdfc509076303c3cdd4da218cb700d572286226afb7ccae9c2b45067f31c38/68747470733a2f2f696d672e736869656c64732e696f2f636f766572616c6c732f697068756f6e6774742f67656e69652e7376673f7374796c653d666c61742d737175617265)](https://coveralls.io/github/esbenp/genie)[![Total Downloads](https://camo.githubusercontent.com/d90355e050cf1cb5f450e88f25df2b6def52eb8da295bdbbc2a0e56186ca99a8/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f697068756f6e6774742f67656e69652e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/iphuongtt/genie)

Introduction
------------

[](#introduction)

A base repository class for Eloquent with convenience methods that cover most queries. Useful to abstract away your persistence layer from your business code.

**Dedicated to Genie**

Dedicated to the World's best (and only) Genie in a bottle. [Congrats on the freedom my man](https://www.youtube.com/watch?v=SUfP6IGQD00).

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

[](#installation)

For Laravel 5.4 and above

```
composer require iphuongtt/genie ~2.0
```

For Laravel 5.3 and below

```
composer require iphuongtt/genie ~1.0
```

Implementation
--------------

[](#implementation)

The examples will use a hypothetical Eloquent model named `User`.

```
