PHPackages                             alexsasharegan/http - 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. alexsasharegan/http

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

alexsasharegan/http
===================

An ultra simple &amp; lightweight library for making RESTful api's easier in PHP.

1.3.0(8y ago)1131MITPHPPHP &gt;=5.3.0

Since Sep 6Pushed 8y ago1 watchersCompare

[ Source](https://github.com/alexsasharegan/Http_lib)[ Packagist](https://packagist.org/packages/alexsasharegan/http)[ Docs](https://github.com/alexsasharegan/Http_lib)[ RSS](/packages/alexsasharegan-http/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (10)Dependencies (1)Versions (35)Used By (0)

Http
====

[](#http)

[![Latest Stable Version](https://camo.githubusercontent.com/926b730fbbaf77baa0884c81718901fcc0f7af1e0779f6d0f395300321cdff2c/68747470733a2f2f706f7365722e707567782e6f72672f616c65787361736861726567616e2f687474702f762f737461626c65)](https://packagist.org/packages/alexsasharegan/http)[![Total Downloads](https://camo.githubusercontent.com/261f614a5bedc1c5051545c18f2ecd70aa185891507f4a96c59adfe46f08f77c/68747470733a2f2f706f7365722e707567782e6f72672f616c65787361736861726567616e2f687474702f646f776e6c6f616473)](https://packagist.org/packages/alexsasharegan/http)[![Latest Unstable Version](https://camo.githubusercontent.com/3772ac47ffad65b5e305532166972978f8b59b4a255b7d190c7136aea90cd34b/68747470733a2f2f706f7365722e707567782e6f72672f616c65787361736861726567616e2f687474702f762f756e737461626c65)](https://packagist.org/packages/alexsasharegan/http)[![License](https://camo.githubusercontent.com/2cd22462a0e059b3b8c609d2686eb96420bcc1e2af4b1277f6d39613a0c28f80/68747470733a2f2f706f7365722e707567782e6f72672f616c65787361736861726567616e2f687474702f6c6963656e7365)](https://packagist.org/packages/alexsasharegan/http)

A lightweight, dependency free library that makes writing file-based RESTful JSON API endpoints easier in PHP.

Setup
-----

[](#setup)

Clone the repo into your project. Assuming your restful endpoints live in an `/api` directory, I would recommend either making an `/api/vendor` folder or just a plain `/api/libs` folder and cloning this repo inside there.

- In your project, `require_once` the path to the `Http_Autoloader.php`.

```
