Download the PHP package esase/tiny-http without Composer

On this page you can find all versions of the php package esase/tiny-http. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package tiny-http

tiny-http

Build Status Coverage Status

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

The request would be either an http query (a query received from a web server) or received from a command line interface (CLI)

e.g:

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

In code snippet above the Request object extracts a requests method and a request string from a super global array of $_SERVER. You should not be worried which mode is activated now CLI or the Http both follow to a one interface.

Response object

The Response object mostly used to generate a final result which will be returned back to a web server or command line and it usually keeps response code, response type and the response it self. The response object could be modified by controllers (if we are following by MVC structure or somewhere else like Middleware

Under the hood the Response object uses headers (for the http mode ) which will be sending depending on your response type, please read more in the documentation.

Installation

Run the following to install this library:

Documentation

https://tiny-docs.readthedocs.io/en/latest/tiny-http/docs/index.html


All versions of tiny-http with dependencies

PHP Build Version
Package Version
Requires php Version ^7.4 || ^8.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package esase/tiny-http contains the following files

Loading the files please wait ....