paginate-php:基于Amphp的简单异步分页器

时间:2021-02-02 02:42:50
【文件属性】:
文件名称:paginate-php:基于Amphp的简单异步分页器
文件大小:12KB
文件格式:ZIP
更新时间:2021-02-02 02:42:50
php async paginator paginate amphp PHP异步分页器 基于Amphp的简单异步分页器。 安装 composer require spacetab-io/paginate 用法 use Spacetab \ Paginate \ Paginator ; use Spacetab \ Paginate \ Adapter \ SqlAdapter ; use Amp \ Postgres ; use function Amp \call; call ( function () { $ connection = new Postgres \ ConnectionConfig ( '127.0.0.1' ); $ paginator = new Paginator ( new SqlAdapter ( new Postgres \ Pool ( $ connection ), 'table_name' )); $ paginator -> setPage ( $ query [ 'page' ] ?? null ); $ paginator -> setPerPage ( $ query [
【文件预览】:
paginate-php-master
----.gitignore(29B)
----src()
--------Paginator.php(4KB)
--------ResultSet.php(1KB)
--------Adapter()
----CONTRIBUTING.md(2KB)
----CODE_OF_CONDUCT.md(3KB)
----LICENSE(1KB)
----.DS_Store(6KB)
----composer.json(645B)
----README.md(2KB)
----phpunit.xml(922B)
----.phpunit.result.cache(403B)
----tests()
--------PaginatorTest.php(4KB)
----.circleci()
--------config.yml(917B)

网友评论