Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/yaffle/multiget
Simultaneuos HTTP requests for PHP
https://github.com/yaffle/multiget
Last synced: about 1 month ago
JSON representation
Simultaneuos HTTP requests for PHP
- Host: GitHub
- URL: https://github.com/yaffle/multiget
- Owner: Yaffle
- Created: 2011-11-05T05:29:05.000Z (about 13 years ago)
- Default Branch: master
- Last Pushed: 2022-04-29T20:47:06.000Z (over 2 years ago)
- Last Synced: 2023-04-09T21:37:00.894Z (over 1 year ago)
- Language: PHP
- Homepage:
- Size: 102 KB
- Stars: 14
- Watchers: 4
- Forks: 8
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
MultiGet
========Simultaneuos HTTP requests with curl_multi and PHP 5.3+
```php
$mget = new MultiGet();
$mget->request('http://ya.ru')
->on('success', function ($content) {
// this anonymous function will be called after request is loaded
// so you can process data before all other downloads ends
// also you can add new requests from here
});
$mget->go();// waits for downloads and executes callbacks
// at this point all work done...
```Example
-------see example.php