承接 fdevs/pagination-bridge 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

fdevs/pagination-bridge

最新稳定版本:0.2.1

Composer 安装命令:

composer require fdevs/pagination-bridge

包简介

pagination with Symfony 2 bridge.

README 文档

README

This is a PHP 5.4 paginator with a totally different core concept.

Setup and Configuration

FDevsPagination uses Composer, please checkout the composer website for more information.

The simple following command will install pagination-bridge into your project. It also add a new entry in your composer.json and update the composer.lock as well.

$ composer require fdevs/pagination-bridge

Usage with Symfony framework

###Enable the bundle in the kernel

<?php
// app/AppKernel.php

public function registerBundles()
{
    $bundles = array(
        // ...
        new FDevs\Bridge\Pagination\FDevsPaginationBundle(),
        // ...
    );
}

default configuration

f_devs_pagination:

    # set default pagination class MUST implement "FDevs\Pagination\Model\PaginationInterface".
    pagination_class:     FDevs\Pagination\Model\Pagination

    # Select the types, allowed "array,doctrine_mongodb,doctrine_orm".
    type_list:

        # Defaults:
        - array
        - doctrine_mongodb
        - doctrine_orm

Usage with The DependencyInjection Component

<?php
use Symfony\Component\DependencyInjection\ContainerBuilder;
use FDevs\Bridge\Pagination\DependencyInjection\FDevsPaginationExtension;

$container = new ContainerBuilder();
// $container configuration...

$container->registerExtension(FDevsPaginationExtension());

$paginator = $container->get('f_devs_pagination.paginator');


// init you target
$target = ..
// example $target = $em->createQuery('SELECT a FROM Entity\Article a');

$paginator->paginate($target);

Created by 4devs - Check out our blog for more insight into this and other open-source projects we release.

统计信息

  • 总下载量: 3.95k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 1
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 4
  • Forks: 1
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2016-05-21

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固