# PHPPage **Repository Path**: jiusem/PHPPage ## Basic Information - **Project Name**: PHPPage - **Description**: 一个简单好用的PHP分页类。 - **Primary Language**: PHP - **License**: Apache-2.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 22 - **Forks**: 5 - **Created**: 2015-09-11 - **Last Updated**: 2022-11-21 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README #### PHPPage 一个简单好用的PHP分页类。多年前,我刚开始接触编程时,分页就是一个不小的挑战。还好很多框架都自带了分页类,帮我省去了很多麻烦。事实上,写好一个分页类不是那么容易,往往看起来简单的事做起来却不那么简单。在工作数年以后,感觉自己功力已大大增强,于是决定自主编写一个好用的分页类。 #### 特点 1. 使用简单,几乎无配置项 2. 支持大数据量,自动优化页码显示 3. 自带样式,通用性强 #### 快速上手 引入样式: ```html ``` 使用: ```php show(); ?> ``` 自定义分页变量(默认为 p): ```php setP('page'); $page->show(); ?> ``` 使用composer安装: ```php { "repositories": [ { "type": "vcs", "url": "https://git.oschina.net/jiusem/PHPPage.git" } ], "require": { "crazymus/PHPPage":"dev-master" } } ``` #### 演示 [![](example.png)](http:// )