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

ActiveLibrary

sanju-inapp/genie
=================

v1.0.0(4mo ago)011MITPHP

Since Jan 12Pushed 3mo agoCompare

[ Source](https://github.com/sanju-inapp/genie)[ Packagist](https://packagist.org/packages/sanju-inapp/genie)[ RSS](/packages/sanju-inapp-genie/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependencies (5)Versions (2)Used By (0)

Genie
=====

[](#genie)

[![Latest Version](https://camo.githubusercontent.com/3e42160d479ebd6a5b6e149fcc20a22bd2cf652c5301f0fa0d2184fe9ad335ea/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f72656c656173652f657362656e702f67656e69652e7376673f7374796c653d666c61742d737175617265)](https://github.com/esbenp/genie/releases)[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE)[![Build Status](https://camo.githubusercontent.com/e0711b3b450db14e659bc4fa4664208fd0f4ddc7f4a863dd24a24075d87c0270/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f657362656e702f67656e69652f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/esbenp/genie)[![Coverage Status](https://camo.githubusercontent.com/1595588953d5513b86499579bf7f7e7a61edeff7f228466c2fcdaa1ffa747510/68747470733a2f2f696d672e736869656c64732e696f2f636f766572616c6c732f657362656e702f67656e69652e7376673f7374796c653d666c61742d737175617265)](https://coveralls.io/github/esbenp/genie)[![Total Downloads](https://camo.githubusercontent.com/9efdeb395691b416c3f7a4db5c78b65796e8e1161f6d62552d12e68064f6c0d0/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6f7074696d75732f67656e69652e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/optimus/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 11 and above

```
composer require sanju-inapp/genie ~2.0
```

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

[](#implementation)

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

```
