PHPackages                             everlution/simple-rest-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. [HTTP &amp; Networking](/categories/http)
4. /
5. everlution/simple-rest-api

ActiveLibrary[HTTP &amp; Networking](/categories/http)

everlution/simple-rest-api
==========================

A pattern for REST APIs

v1.1.3(6y ago)064PHPPHP &gt;=7

Since May 25Pushed 6y ago3 watchersCompare

[ Source](https://github.com/everlution/simple-rest-api)[ Packagist](https://packagist.org/packages/everlution/simple-rest-api)[ RSS](/packages/everlution-simple-rest-api/feed)WikiDiscussions master Synced 3d ago

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

Everlution Simple REST API
==========================

[](#everlution-simple-rest-api)

This library provides all the tools for defining REST APIs and validate requests and responses.

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

[](#installation)

```
composer require everlution/simple-rest-api

# if you are using the JsonSchemaValidator
composer require justinrainbow/json-schema
```

API Definition
--------------

[](#api-definition)

In order to define a new API you need to implement the `Everlution\SimpleRestApi\Api\ApiInterface`.

If you are implementing an API that is going to be validated with JSON Schema you can implement the `JsonSchemaApiInterface`.

```
