PHPackages                             faisalrizal/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. faisalrizal/genie

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

faisalrizal/genie
=================

2.1.2(8y ago)013MITPHP

Since Nov 4Pushed 8y ago1 watchersCompare

[ Source](https://github.com/faisalrizal/genie)[ Packagist](https://packagist.org/packages/faisalrizal/genie)[ RSS](/packages/faisalrizal-genie/feed)WikiDiscussions master Synced 2d ago

READMEChangelog (1)Dependencies (5)Versions (18)Used By (0)

Genie
=====

[](#genie)

[![Latest Version](https://camo.githubusercontent.com/41cf52348df9bd1ba6d3eeac92112f9218cb7cb261bd033c7efa770ddcd1c9cf/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f72656c656173652f66616973616c72697a616c2f67656e69652e7376673f7374796c653d666c61742d737175617265)](https://github.com/esbenp/genie/releases)[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE)[![Total Downloads](https://camo.githubusercontent.com/a74e8c29c61ce4f21d1448757803f23c487f70c8005d1f1c5971fb095b5e39ef/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f66616973616c72697a616c2f67656e69652e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/optimus/genie)[![Build Status](https://camo.githubusercontent.com/14a833fbdffc78f93a10212d460362d4da8719c3ce39bfce057a26dfcb1c00f8/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f66616973616c72697a616c2f67656e69652f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/faisalrizal/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)

```
composer require faisalrizal/genie
```

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

[](#implementation)

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

```
