Download the PHP package fiber-interop/guzzle without Composer

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

fiber-interop/guzzle

A Guzzle handler for fiber-interop/api: inside fiber\run() each request suspends only the task that waits for it, on whichever adapter is installed. Transfers go through fiber-interop/curl.

getAsync() and Utils::all() work too: the transfer starts when the request is sent, so promises created in one task overlap, and wait() suspends that task only.

One line of configuration, and why

Guzzle picks its default handler in GuzzleHttp\Utils::chooseHandler(), a static method with no override, so installing a package cannot change what new GuzzleHttp\Client() uses. Today you create the client with fiber\guzzle\client($config), or pass the handler yourself:

A Utils::setDefaultHandler() (or similar hook) in Guzzle would let this package install itself from its Composer autoload, so composer require alone would be enough. That is the upstream ask.

API

Streaming responses

With 'stream' => true inside fiber\run(), the request returns as soon as the response headers are in, and the body is read while the transfer runs:

How it waits

As fiber-interop/curl does: through a native driver where the runtime has one (phasync with the phasync extension, Swoole with native curl hooking), otherwise through the generic MultiDriver, which polls a shared curl_multi handle with fiber\sleep() (1–10 ms adaptive). PHP exposes no file descriptor for curl_multi, so there is nothing to hand to the event loop; see fiber-interop/curl.

Limits

Tests

A php -S fixture serves the requests, so no network is needed.

License

MIT


All versions of guzzle with dependencies

PHP Build Version
Package Version
Requires php Version ^8.1
fiber-interop/api Version ^0.3
fiber-interop/curl Version ^0.2
guzzlehttp/guzzle Version ^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 fiber-interop/guzzle contains the following files

Loading the files please wait ...