PHPackages                             thomas-squall/php-easy-api - 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. thomas-squall/php-easy-api

ActiveLibrary[API Development](/categories/api)

thomas-squall/php-easy-api
==========================

PHP API System for client and server development.

0.6.2(7y ago)3100MITPHP

Since Dec 4Pushed 7y ago2 watchersCompare

[ Source](https://github.com/ThomasSquall/PHPEasyAPI)[ Packagist](https://packagist.org/packages/thomas-squall/php-easy-api)[ RSS](/packages/thomas-squall-php-easy-api/feed)WikiDiscussions master Synced 1mo ago

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

API System for PHP [![Tweet](https://camo.githubusercontent.com/cb820a0ecc9645168e33b03925d7f14691262ddbaeaf66a0a91697803d0cba2d/68747470733a2f2f696d672e736869656c64732e696f2f747769747465722f75726c2f687474702f736869656c64732e696f2e7376673f7374796c653d736f6369616c)](https://twitter.com/intent/tweet?text=Easy%20to%20use%20PHP%20API%20libray!%20Check%20it%20out!%20&url=https://github.com/ThomasSquall/PHPEasyAPI&hashtags=php,php7,api,apiserver,apiclient,developers)
=================================================================================================================================================================================================================================================================================================================================================================================================================================================================================

[](#api-system-for-php-)

Easy to use library which takes advantage of the [PHP7 annotations library](https://github.com/ThomasSquall/PHPMagicAnnotations).

### Installation

[](#installation)

Using composer is quite simple, just run the following command:

```
$ composer require thomas-squall/php-easy-api
```

### Before starting

[](#before-starting)

Please remember that in order to work you should make sure that every endpoint you call the resolver snippet should be called too. I've attached an htaccess-example that could help. If you got any doubt please open an issue [here](https://github.com/ThomasSquall/PHPEasyAPI/issues).

### Usage Example

[](#usage-example)

#### Client

[](#client)

Let's assume we've got the following class:

```
