PHPackages                             mantle/mantle - 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. [API Development](/categories/api)
4. /
5. mantle/mantle

ActiveLibrary[API Development](/categories/api)

mantle/mantle
=============

Easy model mapping

v1.0(11y ago)27440MITPHP

Since Jun 18Pushed 11y ago1 watchersCompare

[ Source](https://github.com/kleiram/mantle)[ Packagist](https://packagist.org/packages/mantle/mantle)[ Docs](https://github.com/kleiram/mantle)[ RSS](/packages/mantle-mantle/feed)WikiDiscussions master Synced 6d ago

READMEChangelog (3)Dependencies (1)Versions (4)Used By (0)

Mantle
======

[](#mantle)

Mantle makes it easy to write a simple model layer for your PHP applications.

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

[](#installation)

Via Composer:

```
{
    "require": {
        "mantle/mantle": "~1.0"
    }
}
```

Usage
-----

[](#usage)

What's wrong with the way models are usually written in PHP?

Let's use the GitHub API as an example. How would one usually represent a [GitHub issue](https://developer.github.com/v3/issues/#get-a-single-issue) in PHP?

```
