Download the PHP package asika/http without Composer

On this page you can find all versions of the php package asika/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 http

The PSR7 Http Implementation Analytics

Build Status Latest Stable Version Total Downloads Latest Unstable Version License

This package provides PSR7 standard Http message objects, Uri objects, Stream objects and Client request object. (PHP 5.3 Compatible)

Some parts of this package based on phly/http and joomla/http

Project deprecated, please see windwalker/http

Installation via Composer

Add this to the require block in your composer.json.

Make A Request

HttpClient is a simple class to make restful request.

Other Methods

Use Psr RequestInterface to Make Request

Psr7 Request is a immutable object, you have to get the return object every operation.

Use Uri and Json output.

Custom Transports and Options

Now support Curl and Steam 2 transports.

Set custom CURL options:

Download Remote File

Response Interface

Response object holds a Stream object to store returned string.

Uri

Uri is a simple Uri object to modify URL but not Psr UriInterface.

The methods provided in the Uri class allow you to manipulate all aspects of a uri. For example, suppose you wanted to set a new uri, add in a port, and then also post a username and password to authenticate a .htaccess security file. You could use the following syntax:

This will output:

If you wanted to add a specific filepath after the host you could use the setPath() method:

Which will output

Adding a URL query:

Output:

PsrUri

PsrUri is a Uri object implemented the Psr UriInterface.

This object is also immutable, so we must get return value as new object every change.

Stream

Stream is a powerful stream wrapper.

Read write data to memory:

Read data from php://input

Read file:

Quick copy stream.

See: Psr7 StreamInterface / API

Other Http Message Objects

ServerRequest

A Request object to store server data, like: $_SERVER, $_COOKIE, $_REQUEST etc.

UploadedFile

An object to store uploaded files, see: Uploaded files interface

More About Psr 7

PSR7 HTTP message interfaces / HTTP Message Meta Document


All versions of http with dependencies

PHP Build Version
Package Version
Requires php Version >=5.3.10
psr/http-message Version 1.*
windwalker/uri Version ~2.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 asika/http contains the following files

Loading the files please wait ....