commit | author | age
|
2207d6
|
1 |
Guzzle Iterator |
W |
2 |
=============== |
|
3 |
|
|
4 |
Provides useful Iterators and Iterator decorators |
|
5 |
|
|
6 |
- ChunkedIterator: Pulls out chunks from an inner iterator and yields the chunks as arrays |
|
7 |
- FilterIterator: Used when PHP 5.4's CallbackFilterIterator is not available |
|
8 |
- MapIterator: Maps values before yielding |
|
9 |
- MethodProxyIterator: Proxies missing method calls to the innermost iterator |
|
10 |
|
|
11 |
### Installing via Composer |
|
12 |
|
|
13 |
```bash |
|
14 |
# Install Composer |
|
15 |
curl -sS https://getcomposer.org/installer | php |
|
16 |
|
|
17 |
# Add Guzzle as a dependency |
|
18 |
php composer.phar require guzzle/iterator:~3.0 |
|
19 |
``` |
|
20 |
|
|
21 |
After installing, you need to require Composer's autoloader: |
|
22 |
|
|
23 |
```php |
|
24 |
require 'vendor/autoload.php'; |
|
25 |
``` |