Download the PHP package redgoose/paginate without Composer

On this page you can find all versions of the php package redgoose/paginate. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package paginate

paginate

[1][2][3]... 형식으로 된 페이지 네비게이션을 만들어주는 도구입니다.
한번 실행으로 쉽게 페이지네이션 엘리먼트를 만들거나 객체를 만들어서 사용할 수 있습니다.

Install

다음과 같이 composer를 통하여 패키지를 설치합니다.

composer를 사용하지 않는다면 github에서 소스를 다운로드 후에 /src/Paginate.php로 사용합니다.

Usage

with composer

without composer

소스를 다운로드하고 직접 연결할때 사용하는 방법입니다.

create instance

new 키워드를 통하여 인스턴스 객체를 만들어서 사용할 수 있습니다.

Options

인스턴스 객체를 만들때 사용하는 옵션들입니다.
객체를 만드는 예제소스와 같이 object 타입의 객체값은 다음과 같습니다.

Name Type Default Description
total int 0 데이터의 총 갯수
page int 1 현재 페이지의 번호
size int 10 한페이지에서 출력되는 데이터 갯수
scale int 10 총 페이지 갯수
params array null 파라메터로 만들어지는 주소 뒤에붙는 &foo=bar형식으로 된 url

Methods

create instance 섹션에서 만든 $paginate 객체를 통하여 메서드를 사용할 수 있습니다.

update()

인스턴스 객체를 만들때의 설정값을 변경할 수 있습니다.

$pref값은 Options섹션과 같은 값을 사용합니다.

createElements()

네비게이션 엘리먼트를 만들어줍니다.

Name Type Default Description
$classNames array [] 엘리먼트 클래스 이름. 배열의 첫번째 값은 대표 이름으로 사용됩니다.
$path string null 링크 prefix

createObject()

네비게이션 객체를 만들어줍니다.

Name Type Default Description
$path string null 링크 prefix

객체를 만들면 다음과 같은 모습으로 객체를 리턴합니다.


All versions of paginate with dependencies

PHP Build Version
Package Version
Requires php Version >=7.2.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package redgoose/paginate contains the following files

Loading the files please wait ....