PHP code example of belvg / generator-collection
1. Go to this page and download the library: Download belvg/generator-collection library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
belvg / generator-collection example snippets
protected function initiateGeneratorCollection(
AbstractCollection $collection,
int $batch = 1000
): GeneratorCollection {
return $this->generatorCollectionFactory->create([
'collection' => $collection,
'batch' => $batch,
]);
}