Download the PHP package bluepsyduck/multicurl without Composer

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

BluePsyduck's MultiCurl Library

Latest Stable Version Total Downloads License Build Status codecov

This library helps with creating and executing multiple requests simultaneously using the Multi-cURL functions of PHP.

Requirements

Usage

The main class of the library is the MultiCurlManager, to which you can add as many requests as you like and which will execute them. For each request to be started, create an instance of the Entity\Request class and set its properties as required, and add it to the manager using $manager->addRequest($request). Added requests will immediately be executed, without blocking the script execution.

To wait for a certain request to finish, call $manager->waitForSingleRequest($request). To wait for all requests to finish, call $manager->waitForAllRequests(). These methods will block script execution until the desired requests are finished.

Once a request is finished, use $request->getResponse() to get the information of the response. You may want to check $response->getErrorCode() and $response->getErrorMessage() to get any information in case the request has failed.

The requests offer two callbacks:

Examples

Here is a basic example demonstrating the use of the MultiCurlManager:

Here is another example demonstrating limiting the number of parallel requests:


All versions of multicurl with dependencies

PHP Build Version
Package Version
Requires php Version >=5.3.0
ext-curl Version *
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 bluepsyduck/multicurl contains the following files

Loading the files please wait ....