# pagingClass **Repository Path**: daihaoran/paging-class ## Basic Information - **Project Name**: pagingClass - **Description**: php分页类及应用。 - **Primary Language**: PHP - **License**: Apache-2.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 1 - **Forks**: 0 - **Created**: 2020-11-24 - **Last Updated**: 2020-12-19 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # pagingClass #### 介绍 php分页类及应用。 #### 软件说明 php语言下的任何框架都可使用,包括laravel、CodeIgniter、yaf、Yii、ThinkPHP等。 ##### 软件使用说明 1.首先要包含分页类 ```php include "page.class.php"; ``` 2.set()方法用于设置分页类的按钮样式   ```php $page = new Page(1000); //设置分页类按钮样式 $page->set('head', '篇内容') ->set('first', '|<') ->set('prev', '<<') ->set('next', '>>') ->set('last', '>|'); ``` 3.设置分页类按钮及信息的顺序及有无 ```php $page = new Page(1000); echo $page->fpage(3, 4, 5, 6, 0); ``` #### 效果如下 ![paging class 效果图](https://img2020.cnblogs.com/blog/427641/202011/427641-20201124211750212-55823402.png) #### 参与贡献 1. Fork 本仓库 2. 新建 Feat_xxx 分支 3. 提交代码 4. 新建 Pull Request #### 特技 1. 使用 Readme\_XXX.md 来支持不同的语言,例如 Readme\_en.md, Readme\_zh.md 2. Gitee 官方博客 [blog.gitee.com](https://blog.gitee.com) 3. 你可以 [https://gitee.com/explore](https://gitee.com/explore) 这个地址来了解 Gitee 上的优秀开源项目 4. [GVP](https://gitee.com/gvp) 全称是 Gitee 最有价值开源项目,是综合评定出的优秀开源项目 5. Gitee 官方提供的使用手册 [https://gitee.com/help](https://gitee.com/help) 6. Gitee 封面人物是一档用来展示 Gitee 会员风采的栏目 [https://gitee.com/gitee-stars/](https://gitee.com/gitee-stars/)