1. Go to this page and download the library: Download s25/queue-from 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/ */
s25 / queue-from example snippets
25\Queue\Queue;
$key = 'test';
$path = './';
$queue = new Queue($key);
// Заполнить очередь строками из массива
$queue->getGenerator([1,2,3,4,5,6,7,8,9,10])->generate();
while ($item = $queue->pop())
{
echo $item;
}
// Заполнить очередь списком файлов
$queue->getGenerator(new \DirectoryIterator($path))->generate();
while ($item = $queue->pop())
{
echo $item;
}
// Продолжение следует...
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.