PHPackages                             esase/tiny-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. [Framework](/categories/framework)
4. /
5. esase/tiny-http

ActiveLibrary[Framework](/categories/framework)

esase/tiny-http
===============

An abstraction layer component for http requests and responses

v1.1.3(5y ago)01901[2 PRs](https://github.com/esase/tiny-http/pulls)1MITPHPPHP ^7.4 || ^8.0

Since Aug 2Pushed 3y ago1 watchersCompare

[ Source](https://github.com/esase/tiny-http)[ Packagist](https://packagist.org/packages/esase/tiny-http)[ RSS](/packages/esase-tiny-http/feed)WikiDiscussions master Synced 3d ago

READMEChangelog (7)Dependencies (2)Versions (10)Used By (1)

tiny-http
=========

[](#tiny-http)

[![Build Status](https://camo.githubusercontent.com/fffa2004a35eff2cc6a32428f21d1f8aeb2f6a0225c47b14c76128f573fa86d5/68747470733a2f2f7472617669732d63692e636f6d2f65736173652f74696e792d687474702e7376673f6272616e63683d6d6173746572)](https://travis-ci.com/github/esase/tiny-http/builds)[![Coverage Status](https://camo.githubusercontent.com/0074607f86cb4be9841fa4ec186ec62a035bc91dda2b19b509e773cee896e558/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f6769746875622f65736173652f74696e792d687474702f62616467652e7376673f6272616e63683d6d6173746572)](https://coveralls.io/github/esase/tiny-http?branch=master)

Basically each web application starts with an `INPUT` (an incoming request which would be: `GET`, `POST`, etc) and an `OUTPUT` a final response (`JSON`, `HTML`, `XML`, etc).

So the **Tiny/Http** it's an layer which holds both `INPUT` and `OUTPUT` objects and gives to your application a possibility to manipulate with them during the application's lifecycle.

Due to the simple interface of the package it can be integrated to any web application.

Request object
--------------

[](#request-object)

The request would be either an `http` query (a query received from a `web server`) or received from a command line interface ([CLI](https://en.wikipedia.org/wiki/Command-line_interface))

e.g:

`[POST] http://test.com/import/files``[CLI] php import files`

```
