Download the PHP package imphp/http without Composer

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

IMPHP - Http Message


This library is based on the idea of PSR7, but differs a lot. While PSR7 has some great ideas, I personally did not like the actual implementation of that idea. Moving all of the PHP mess like request and response data into proper interfaced classes was a good idea. Besides being a lot nicer to look at and work with, it also completely sandboxes the entire request/response process, as nothing in your code needs to be hard wired to work with certain aspects of static PHP data. You can create an entire request wrapped in a single object.

But, there are some things that I did not like about the implementation though. The biggest one was the Factory design, which is great for some things, but there is no real reason to introduce this much overhead to such an implementation.

There are 3 main interfaces in this library as well as PSR7, Request, Response and Uri. None of these 3 have any dependencies on one another, except for a single Host header in the Request, which may or may not be based on and updated from the Uri. But there are simple ways around this, without keeping the objects themselves in a read-only state. If for some reason you have some code that requires you to ensure that no values are changed, a simple clone can manually be made and as such, the specification should simply enforce a safe-clone policy, to ensure that implementations take cloning into account.

Type hinting
PSR7 is designed to work with older PHP versions. As such it does not utilize PHP's newer type declaration types. Statically typed code is much easier to work with and debug, and since PHP has finally made it to a more final stage in this regard, although the road was long (All the way through the entire PHP 7.x tree), tools should start scrapping old support and make more use of it.

Full Documentation

You can view the Full Documentation to lean more about what this offers.

Installation

Using .phar library

Clone via git

Composer (Packagist)


All versions of http with dependencies

PHP Build Version
Package Version
Requires imphp/base Version ~1.7
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 imphp/http contains the following files

Loading the files please wait ....