1
0
Fork 0
mirror of https://github.com/Yetangitu/ampache synced 2025-10-04 10:19:25 +02:00
ampache/modules/Guzzle/Iterator
2014-02-05 08:08:46 +01:00
..
AppendIterator.php Begin WebSocket support for Broadcast and Player control 2014-02-05 08:08:46 +01:00
ChunkedIterator.php Begin WebSocket support for Broadcast and Player control 2014-02-05 08:08:46 +01:00
composer.json Begin WebSocket support for Broadcast and Player control 2014-02-05 08:08:46 +01:00
FilterIterator.php Begin WebSocket support for Broadcast and Player control 2014-02-05 08:08:46 +01:00
MapIterator.php Begin WebSocket support for Broadcast and Player control 2014-02-05 08:08:46 +01:00
MethodProxyIterator.php Begin WebSocket support for Broadcast and Player control 2014-02-05 08:08:46 +01:00
README.md Begin WebSocket support for Broadcast and Player control 2014-02-05 08:08:46 +01:00

Guzzle Iterator

Provides useful Iterators and Iterator decorators

  • ChunkedIterator: Pulls out chunks from an inner iterator and yields the chunks as arrays
  • FilterIterator: Used when PHP 5.4's CallbackFilterIterator is not available
  • MapIterator: Maps values before yielding
  • MethodProxyIterator: Proxies missing method calls to the innermost iterator

Installing via Composer

# Install Composer
curl -sS https://getcomposer.org/installer | php

# Add Guzzle as a dependency
php composer.phar require guzzle/iterator:~3.0

After installing, you need to require Composer's autoloader:

require 'vendor/autoload.php';