├── .gitignore ├── .php_cs ├── .travis.yml ├── LICENSE ├── README.md ├── composer.json ├── grumphp.yml ├── phpunit.xml ├── src ├── Collector.php ├── Collectors.php ├── Functions.php ├── Stream.php ├── collectors │ ├── AveragingCollector.php │ └── ReducingCollector.php ├── exception │ └── InvalidStreamException.php └── operations │ ├── AbstractCallbackOperation.php │ ├── DistinctOperation.php │ ├── FilterOperation.php │ ├── FlatMapOperation.php │ ├── LimitOperation.php │ ├── MappingOperation.php │ ├── SkipOperation.php │ └── SortedOperation.php └── tests ├── bootstrap.php └── unit ├── CollectorsTest.php ├── FunctionsTest.php ├── StreamTest.php └── operations ├── DistinctOperationTest.php ├── FilterOperationTest.php ├── FlatMapOperationTest.php ├── LimitOperationTest.php ├── MappingOperationTest.php ├── SkipOperationTest.php └── SortedOperationTest.php /.gitignore: -------------------------------------------------------------------------------- 1 | /vendor/ 2 | .php_cs.cache 3 | composer.lock 4 | -------------------------------------------------------------------------------- /.php_cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bertptrs/phpstreams/HEAD/.php_cs -------------------------------------------------------------------------------- /.travis.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bertptrs/phpstreams/HEAD/.travis.yml -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bertptrs/phpstreams/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bertptrs/phpstreams/HEAD/README.md -------------------------------------------------------------------------------- /composer.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bertptrs/phpstreams/HEAD/composer.json -------------------------------------------------------------------------------- /grumphp.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bertptrs/phpstreams/HEAD/grumphp.yml -------------------------------------------------------------------------------- /phpunit.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bertptrs/phpstreams/HEAD/phpunit.xml -------------------------------------------------------------------------------- /src/Collector.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bertptrs/phpstreams/HEAD/src/Collector.php -------------------------------------------------------------------------------- /src/Collectors.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bertptrs/phpstreams/HEAD/src/Collectors.php -------------------------------------------------------------------------------- /src/Functions.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bertptrs/phpstreams/HEAD/src/Functions.php -------------------------------------------------------------------------------- /src/Stream.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bertptrs/phpstreams/HEAD/src/Stream.php -------------------------------------------------------------------------------- /src/collectors/AveragingCollector.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bertptrs/phpstreams/HEAD/src/collectors/AveragingCollector.php -------------------------------------------------------------------------------- /src/collectors/ReducingCollector.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bertptrs/phpstreams/HEAD/src/collectors/ReducingCollector.php -------------------------------------------------------------------------------- /src/exception/InvalidStreamException.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bertptrs/phpstreams/HEAD/src/exception/InvalidStreamException.php -------------------------------------------------------------------------------- /src/operations/AbstractCallbackOperation.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bertptrs/phpstreams/HEAD/src/operations/AbstractCallbackOperation.php -------------------------------------------------------------------------------- /src/operations/DistinctOperation.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bertptrs/phpstreams/HEAD/src/operations/DistinctOperation.php -------------------------------------------------------------------------------- /src/operations/FilterOperation.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bertptrs/phpstreams/HEAD/src/operations/FilterOperation.php -------------------------------------------------------------------------------- /src/operations/FlatMapOperation.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bertptrs/phpstreams/HEAD/src/operations/FlatMapOperation.php -------------------------------------------------------------------------------- /src/operations/LimitOperation.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bertptrs/phpstreams/HEAD/src/operations/LimitOperation.php -------------------------------------------------------------------------------- /src/operations/MappingOperation.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bertptrs/phpstreams/HEAD/src/operations/MappingOperation.php -------------------------------------------------------------------------------- /src/operations/SkipOperation.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bertptrs/phpstreams/HEAD/src/operations/SkipOperation.php -------------------------------------------------------------------------------- /src/operations/SortedOperation.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bertptrs/phpstreams/HEAD/src/operations/SortedOperation.php -------------------------------------------------------------------------------- /tests/bootstrap.php: -------------------------------------------------------------------------------- 1 |