evaneos / berthe
The model Framework made by Evaneos
Installs: 80 752
Dependents: 1
Suggesters: 0
Security: 0
Stars: 1
Watchers: 27
Forks: 3
Open Issues: 0
Requires
- php: >=5.4.0
- doctrine/annotations: ~1.2
- league/event: ^2.0
- psr/log: ~1.0
- symfony/stopwatch: ~2.6
- zf1/zend-db: ~1.12
Requires (Dev)
- phpunit/phpunit: ~4.0
Suggests
- monolog/monolog: Allows more advanced logging of the application flow
This package is auto-updated.
Last update: 2024-11-22 17:23:38 UTC
README
Utils
Buffered Iterator
Useful when your logic can directly process a batch of result instead of one by one
$bufferIterator = new BufferedIterator(new FetcherIterator(new Service(), new FetcherBuilder(), 100); foreach($bufferIterator as $results){ dump($results); //contains 100 items $resource = new Resource($results, $composerName); $composed = $composerManager->compose($resource); $composedResource = $composed->getComposite(); $composedResource = new Collection($composedResource, $transformer); $transformedRessource = $fractal->createData($composedResource)->toArray(); //got your transformed batch instead of processing one by one or any overhead }