PHPackages                             rozbehsharahi/fhp-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. rozbehsharahi/fhp-rest-api

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

rozbehsharahi/fhp-rest-api
==========================

Super quick setup of a PHP-REST-API without the use of MySQL, Apache, ...

v2.0.1(9y ago)015MITPHP

Since Jan 23Pushed 9y ago1 watchersCompare

[ Source](https://github.com/RozbehSharahi/fhp-rest-api)[ Packagist](https://packagist.org/packages/rozbehsharahi/fhp-rest-api)[ Docs](http://github.com/RozbehSharahi/fhp-rest-api)[ RSS](/packages/rozbehsharahi-fhp-rest-api/feed)WikiDiscussions master Synced today

READMEChangelog (6)Dependencies (5)Versions (7)Used By (0)

FHP REST API [![Build Status](https://camo.githubusercontent.com/4dcc0025d8753c4d0c776ccbb15fc3fa4a073803616e72f806617105c05a509a/68747470733a2f2f7472617669732d63692e6f72672f526f7a626568536861726168692f6668702d726573742d6170692e7376673f6272616e63683d76322e302e30)](https://travis-ci.org/RozbehSharahi/fhp-rest-api) (Master [![Build Status](https://camo.githubusercontent.com/e8c3b75d9e0c2f9b83325b317264086a6e69ff3c4ba7ace3c6fd254ae986ac19/68747470733a2f2f7472617669732d63692e6f72672f526f7a626568536861726168692f6668702d726573742d6170692e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/RozbehSharahi/fhp-rest-api))
=================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================

[](#fhp-rest-api--master-)

Description
-----------

[](#description)

FHP REST API provides an easy way to setup a **JSON FILE based REST API**.

There are no dependencies to MySQL or other databases. All files will be stored as json files by default. Still you may also integrate your own way of saving data, by integrating your own **controllers**, **entites** and **normalizers**.

I'm trying really hard to make this very flexible and at the same easy to understand, i hope you enjoy working with this.

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

[](#installation)

```
$ composer require rozbehsharahi/fhp-rest-api
```

How to
------

[](#how-to)

The following **index.php** is enough to provide PUT, GET, POST, OPTION, DELETE routes for your application on the `/posts` route:

```
