1. Go to this page and download the library: Download arrilot/collectors 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/ */
arrilot / collectors example snippets
use Arrilot\Collectors\Collector;
class FooCollector extends Collector
{
/**
* Get data for given ids.
*
* @param array $ids
* @return array
*/
public function getList(array $ids)
{
...
}
}
$files = $collector->select(['id', 'name'])->performQuery();
// $this->select is ['id', 'name'] in `->getList()` and you can implement logic handling it.
$collector->where(['active' => 1])->performQuery();
// $this->where is ['active' => 1]
$collector->fromItem($item, 'properties.files');
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.