Download the PHP package waaseyaa/http-client without Composer

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

waaseyaa/http-client

Layer 0 — Foundation

Minimal HTTP client for JSON APIs and webhooks.

HttpClientInterface exposes a generic request(string $method, string $url, …) plus get() / post() convenience helpers — other verbs (PUT/DELETE/PATCH/…) go through request(); there are no dedicated put()/delete()/patch() methods. StreamHttpClient is the production implementation backed by PHP streams. Returns HttpResponse value objects (no shared state) and throws HttpRequestException on transport failures, including response bodies that exceed the configured size ceiling or end before their declared Content-Length. Designed as an injectable seam — tests replace HttpClientInterface with a fake rather than mocking PHP's stream layer.

SymfonyHttpClient is an additive implementation using maintained Symfony networking. Its constructor selects a total network transfer budget and maximum decoded body size. It uses verified TLS, no redirects or retries, streams with buffering disabled, refuses overflow and incomplete transfers, and returns non-success HTTP statuses for the caller to interpret. Failure messages omit upstream diagnostics; the URL and method remain in the existing typed exception properties. The optional Symfony client argument is a trusted integration/test seam and must preserve the configured transport guarantees.

Key classes: HttpClientInterface, StreamHttpClient, SymfonyHttpClient, HttpResponse, HttpRequestException.

Response framing boundary

HEAD, 1xx, 204, and 304 responses have an empty body regardless of metadata Content-Length. Other length-delimited bodies stop at that length without waiting for the peer to close the connection. EOF before the declared length and timeouts while reading that body fail closed.

PHP's HTTP wrapper dechunks responses and removes Transfer-Encoding before exposing the stream. The byte ceiling still applies to decoded chunked bodies, but this transport cannot independently detect a missing chunk terminator. For connection-close bodies, EOF defines completion; no independent expected length is available. This change does not claim to validate those hidden framing cases.


All versions of http-client with dependencies

PHP Build Version
Package Version
Requires php Version >=8.5
symfony/http-client Version ^7.4
symfony/http-client-contracts Version ^3.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 waaseyaa/http-client contains the following files

Loading the files please wait ...