PHPackages                             danielaranda/restful - 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. danielaranda/restful

ActiveLibrary[API Development](/categories/api)

danielaranda/restful
====================

RESTful Server :: standalone

0.3.8(10y ago)8944[1 issues](https://github.com/daniel-aranda/RESTful/issues)MITPHP

Since Mar 2Pushed 10y ago2 watchersCompare

[ Source](https://github.com/daniel-aranda/RESTful)[ Packagist](https://packagist.org/packages/danielaranda/restful)[ RSS](/packages/danielaranda-restful/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (10)Dependencies (2)Versions (17)Used By (0)

RESTful Server
==============

[](#restful-server)

[![Continuos Integration for RESTful project](https://camo.githubusercontent.com/b6ce0db55621203a5498971696cdf882b86df542a818a0196ab5910ec3023c2c/68747470733a2f2f7472617669732d63692e6f72672f64616e69656c2d6172616e64612f5245535466756c2e7376673f6272616e63683d6d6173746572)](https://camo.githubusercontent.com/b6ce0db55621203a5498971696cdf882b86df542a818a0196ab5910ec3023c2c/68747470733a2f2f7472617669732d63692e6f72672f64616e69656c2d6172616e64612f5245535466756c2e7376673f6272616e63683d6d6173746572)

PHP standalone RESTful server.
------------------------------

[](#php-standalone-restful-server)

This project is not intended to be another Laravel or Symfony, it is a standalone RESTful server with two major focus:

- **Easy to use**, just import it with Composer and mostly be ready to run the server.
- **Performance**, I use the server for two things:
    - **Quick proof of concepts**. The time that take you to setup this Framework should be less than a minute, for practical purposes investing 15 minutes or more in the setup of a Framework is just too much regarding Proof of concepts.
    - **Big data**. This projects is open source, however in my professional side I work a lot with REST apis and big data over cloud systems and perform matters, and when I said matters I mean tiny details like this example:
        - Some of the popular Frameworks has a minimum response time of 150ms in average, as first hand that sounds quickly but the truth is that it could be faster
        - This Framework can reach speeds of 30ms because it focus on RESTful nothing else, every other additional is optional, in several cases you have a cached response and just want a super quick response.

\###Requirements

- PHP 5.5 or greater
- PHP project with [Composer](https://getcomposer.org/doc/00-intro.md)

\###Installation

```
composer require "danielaranda/restful=*"
composer update

```

\###Create server endpoint.

- At your project root create a folder named public, which is assumed will be the folder that your web server will use as Document Root.
- Create the file public/api.php

```
