PHPackages                             arch/multicurl - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [HTTP &amp; Networking](/categories/http)
4. /
5. arch/multicurl

ActiveLibrary[HTTP &amp; Networking](/categories/http)

arch/multicurl
==============

Multi Curl request with batch and parallel request

v1.1.1(9y ago)18741MIT LicensePHP

Since Dec 30Pushed 9y ago1 watchersCompare

[ Source](https://github.com/metallurgical/multicurl)[ Packagist](https://packagist.org/packages/arch/multicurl)[ RSS](/packages/arch-multicurl/feed)WikiDiscussions master Synced 2mo ago

READMEChangelog (3)DependenciesVersions (4)Used By (1)

Multi Curl
==========

[](#multi-curl)

Multi Curl with batch and parallel request. As the name suggest, you can make a batch request or parallel request at once.

Batch Request
=============

[](#batch-request)

Will split array data provided, and request part by part to minimize workload during request instead of requesting at once. Defining how much the number of data per request is at your own choices. The batch request simply divided array of url(s) part by part and doing the request one by one until finish. While waiting for next queue of request, you can provide callback for each batch to execute.

Paraller Request
================

[](#paraller-request)

Passed in the whole set of array data and will request all at once.

Installation
============

[](#installation)

Library can be installed using composer, just require it :

```
composer require arch/multicurl

```

Usage Example
=============

[](#usage-example)

1. Inside file just include `Arch\MultiCurl\MultiCurl` at the top of page:

```

```

2. Instantiate library and call the available method :

```
