Adapters
Custom Adapters
Available Adapters
ArrayAdapter
<?php
use SonsOfPHP\Component\Pager\Adapter\ArrayAdapter;
$adapter = new ArrayAdapter($results);CallableAdabter
<?php
use SonsOfPHP\Component\Pager\Adapter\CallableAdapter;
$adapter = new CallableAdapter(
count: function (): int {
// ...
},
slice: function (int $offset, ?int $length): iterable {
// ...
},
);ArrayCollectionAdapter (doctrine/collections)
QueryBuilderAdapter (doctrine/dbal)
QueryBuilderAdapter (doctrine/orm)
Last updated