Download the PHP package kodhe/pagination without Composer

On this page you can find all versions of the php package kodhe/pagination. 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 pagination

Kodhe Pagination

Package pagination hasil refaktor library Pagination CodeIgniter 3, dengan namespace Kodhe\Framework\Pagination. Selain API CI3 yang utuh (initialize() + create_links()), package ini menambahkan lapisan modular: renderer (default / Bootstrap / Tailwind) dan URL builder (URI segment / query string) yang bisa dipilih lewat konfigurasi, plus cache link internal.

Instalasi

Persyaratan: PHP >= 8.1. Tidak ada dependensi eksternal.

Quick Start

Struktur Direktori

Penggunaan

1. Gaya CI3 (initialize terpisah)

2. Halaman via query string (?page=N)

3. Memilih renderer (Bootstrap / Tailwind)

Properti publik renderer_name dibaca saat initialize():

4. Kustomisasi label & tampilan (kompatibel CI3)

5. Helper cepat Bootstrap 5

Untuk proyek CI3 dengan instance kodhe(), helper prosedural tersedia:

(Membutuhkannya di-load manual: require pagination/src/helpers.php atau via loader helper framework.)

Konfigurasi

Properti Default Keterangan
base_url '' URL dasar pagination
total_rows 0 Total baris data (wajib)
per_page 10 Baris per halaman
num_links 2 Jumlah link nomor di sekitar halaman aktif
cur_page 0 Halaman aktif (0 = baca otomatis)
uri_segment 3 Segmen URI penyimpan nomor halaman
use_page_numbers false true: link berupa nomor halaman; false: offset
page_query_string false true: gunakan query string, bukan URI segment
query_string_segment 'per_page' Nama parameter query string
first_link/next_link/prev_link/last_link CI3 Label navigasi
*_tag_open/*_tag_close '' Pembungkus tiap bagian
first_url '' URL khusus untuk halaman pertama
display_pages true Sembunyikan daftar nomor halaman
prefix / suffix '' Tambahan sebelum/sesudah angka halaman
reuse_query CI3 Pertahankan parameter GET lain pada link
renderer_name 'default' default | bootstrap | tailwind

Referensi API (ringkas)

Method Keterangan
__construct(array $params = []) Buat instance, optional langsung initialize()
initialize($params = []) Set konfigurasi & siapkan renderer/url-builder; return $this
create_links() Generate HTML pagination (string)
parse_string($template, $data, $return) Render template sederhana dengan data

Kompatibilitas CodeIgniter 3

Semua properti dan perilaku CI_Pagination dipertahankan — drop-in. Yang baru hanya renderer_name dan komponen modular internal; jika tidak dipakai, output identik dengan CI3.

Catatan

Pengujian


All versions of pagination with dependencies

PHP Build Version
Package Version
Requires php Version >=8.1
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 kodhe/pagination contains the following files

Loading the files please wait ...