PHPackages                             pushoperations/magician - 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. pushoperations/magician

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

pushoperations/magician
=======================

A library for implementing repositories with magic finders for the Eloquent ORM.

v2.0.0(10y ago)2711[3 issues](https://github.com/pushoperations/Magician/issues)MITPHPPHP &gt;=5.4.0

Since Jan 19Pushed 10y ago10 watchersCompare

[ Source](https://github.com/pushoperations/Magician)[ Packagist](https://packagist.org/packages/pushoperations/magician)[ Docs](https://github.com/pushoperations/Magician)[ RSS](/packages/pushoperations-magician/feed)WikiDiscussions laravel-5 Synced 1mo ago

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

Magician
========

[](#magician)

[![Build Status](https://camo.githubusercontent.com/84f5463a74c54535f4ac619ebf3d828d93c2aa1def4293f926cc603727d7fdcb/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f707573686f7065726174696f6e732f4d6167696369616e2e737667)](https://travis-ci.org/pushoperations/Magician)[![Coverage Status](https://camo.githubusercontent.com/e4af12ddd2fd0726ba538f94572812c6057f612e2dad5de14ae84fece5dbe91f/68747470733a2f2f696d672e736869656c64732e696f2f636f766572616c6c732f707573686f7065726174696f6e732f4d6167696369616e2e737667)](https://coveralls.io/r/pushoperations/Magician)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/ff93df15bb27d0d561e23362b9d17aa269a09f8b6d5048b12ec722af89f55f3e/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f707573686f7065726174696f6e732f4d6167696369616e2e737667)](https://scrutinizer-ci.com/g/pushoperations/Magician/?branch=master)

[![Total Downloads](https://camo.githubusercontent.com/08a3f5c3f0363f82c5e852735ee194c736f5dd756067a91aefaf9d359cf9555f/68747470733a2f2f706f7365722e707567782e6f72672f707573686f7065726174696f6e732f6d6167696369616e2f646f776e6c6f6164732e737667)](https://packagist.org/packages/pushoperations/Magician)[![Latest Stable Version](https://camo.githubusercontent.com/518da8d0c1ff9e619c28edc70a7de77927d0e3695f7be388208582d4fbf20b79/68747470733a2f2f706f7365722e707567782e6f72672f707573686f7065726174696f6e732f6d6167696369616e2f762f737461626c652e737667)](https://packagist.org/packages/pushoperations/Magician)[![Latest Unstable Version](https://camo.githubusercontent.com/24f99b8f7aef77051cf407686815f085409051d568d8641125a287616aa5e67f/68747470733a2f2f706f7365722e707567782e6f72672f707573686f7065726174696f6e732f6d6167696369616e2f762f756e737461626c652e737667)](https://packagist.org/packages/pushoperations/Magician)[![License](https://camo.githubusercontent.com/380c0ea928e58f3d5179fa84ca942a918cf49f0e6fb50f4265de18c624117dbf/68747470733a2f2f706f7365722e707567782e6f72672f707573686f7065726174696f6e732f6d6167696369616e2f6c6963656e73652e737667)](https://packagist.org/packages/pushoperations/Magician)

[![SensioLabsInsight](https://camo.githubusercontent.com/03ac8ff9052110f9e6f8946f5758685057db6f09b0bd1ccac571f721eb2e1ec8/68747470733a2f2f696e73696768742e73656e73696f6c6162732e636f6d2f70726f6a656374732f33663262373535612d366361362d346138352d396230372d3433653038636536383331302f6269672e706e67)](https://insight.sensiolabs.com/projects/3f2b755a-6ca6-4a85-9b07-43e08ce68310)

A library for implementing repositories with magic finders and caching for the Eloquent ORM.

Contents
--------

[](#contents)

- [Installation](#install)
- [Usage](#usage)
- [Examples](#examples)
- [API documentation](http://pushoperations.github.io/Magician)

Install
-------

[](#install)

The recommended way to install is through [Composer](http://getcomposer.org).

Update your project's composer.json file to include Magic Repository:

```
{
    "require": {
        "pushoperations/magician": "2.*"
    }
}
```

Then update the project dependencies to include this library:

```
composer update pushoperations/magician
```

After installing, you need to require Composer's autoloader:

```
require 'vendor/autoload.php';
```

Usage
-----

[](#usage)

A base implementation of the magic repository is already created for use out-of-the-box.

```
