Download the PHP package bojaghi/pagination without Composer
On this page you can find all versions of the php package bojaghi/pagination. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download bojaghi/pagination
More information about bojaghi/pagination
Files in bojaghi/pagination
Download bojaghi/pagination
More information about bojaghi/pagination
Files in bojaghi/pagination
Vendor bojaghi
Package pagination
Short Description Simple pagination range generation helper
License GPL-2.0-or-later
Homepage https://github.com/bojaghi/pagination
Package pagination
Short Description Simple pagination range generation helper
License GPL-2.0-or-later
Homepage https://github.com/bojaghi/pagination
Please rate this library. Is it a good library?
Informations about the package pagination
Pagination
게시판과 유사한 목록 페이지를 만들면, 항상 페이지네이션을 생각해야 합니다. 이 패키지는 워드프레스의 WP_Query 객체로부터 쉽게 페이지네이션의 시작과 끝을 구할 수 있게 도와줍니다.
사용방법
방법 1: 생성자에 WP_Query 넣기
WP_Query 사용시, 객체를 생성자로 넣어주면 됩니다.
방법 2: 메서드 사용
메서드를 사용해 WP_Query를 지정합니다.
방법 3: 파리미터를 직접 입력
WP_Query를 사용하지 않는 경우, 직접 파라미터를 입력하여 계산할 수 있습니다.
페이지네이션 계산 방식
섹션
setType() 메서드에 Pagination::TYPE_SECTION을 입력하여 설정할 수 있습니다. 기본값입니다.
페이지네이션 사이즈만큼 표시하는데, 분할된 섹션 안에서 현재 페이지는 적당히 배치시키는 방식입니다.
아래 예시를 참고하세요. [ ] 안의 숫자는 현재 페이지입니다.
센터
setType() 메서드에 Pagination::TYPE_CENTER를 입력하여 설정할 수 있습니다.
페이지네이션 사이즈만큼 표시되며, 현재 페이지가 항상 가운데 위치하게끔 최선을 다합니다.
아래 예시를 참고하세요.
All versions of pagination with dependencies
PHP Build Version
Package Version
Requires
php Version
>=8.0
The package bojaghi/pagination contains the following files
Loading the files please wait ...