PHPackages                             kield-01/cakephp3-json-pagination - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. kield-01/cakephp3-json-pagination

ActiveLibrary

kield-01/cakephp3-json-pagination
=================================

JSON Pagination trait for CakePHP 3.x

1.4.1.1(8y ago)1371GPL-3.0-or-laterPHPPHP &gt;=5.6

Since Mar 4Pushed 8y ago1 watchersCompare

[ Source](https://github.com/KielD-01/cakephp3-json-pagination)[ Packagist](https://packagist.org/packages/kield-01/cakephp3-json-pagination)[ RSS](/packages/kield-01-cakephp3-json-pagination/feed)WikiDiscussions master Synced 2mo ago

READMEChangelog (10)Dependencies (1)Versions (17)Used By (0)

CakePHP 3.x JSON Pagination Trait
=================================

[](#cakephp-3x-json-pagination-trait)

Badges
------

[](#badges)

[![Github All Releases](https://camo.githubusercontent.com/043628971f3c6eda43aaf8b5f9fd577d418c7039db56ad5536b13238de3ff19c/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f646f776e6c6f6164732f4b69656c442d30312f63616b65706870332d6a736f6e2d706167696e6174696f6e2f746f74616c2e7376673f7374796c653d706c6173746963)](https://github.com/KielD-01/cakephp3-json-pagination) [![Packagist](https://camo.githubusercontent.com/be6b16d2f6d6d53f3858275b1635ad0f9c5a31b24812158b6e73de79572a4288/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6b69656c642d30312f63616b65706870332d6a736f6e2d706167696e6174696f6e2e737667)](https://camo.githubusercontent.com/be6b16d2f6d6d53f3858275b1635ad0f9c5a31b24812158b6e73de79572a4288/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6b69656c642d30312f63616b65706870332d6a736f6e2d706167696e6174696f6e2e737667)

Installation
------------

[](#installation)

`composer require kield-01/cakephp3-json-pagination && composer dump-autoload -o`

How to use?
-----------

[](#how-to-use)

In Your `AppController`, You must add `use JsonPaginationTrait` to use the trait application-wide:

```
class AppController extends Controller
{

    use JsonPaginationTrait;
}

```

Or You could add it only to the controller You want:

```
class UsersController extends Controller
{

    use JsonPaginationTrait;
}

```

How to get the data?
--------------------

[](#how-to-get-the-data)

At first, You should load Your model, which You want to use with `JsonPaginationTrait` or to use autoloaded by the classname:

```
class UsersController extends Controller
{

    use JsonPaginationTrait;

    public function index()
    {
        /** If You want to use custom alias, You should pass second argument **/
        return $this->j_paginate($this->Users->find(), $this->Users->getTable());

        /** Regular response with classic data alias **/
        return $this->j_paginate($this->Users->find());
    }

}

```

###  Health Score

29

—

LowBetter than 60% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity66

Established project with proven stability

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~2 days

Total

15

Last Release

2958d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/a0add303e0c489bc0b76824d864285a85e4a21fc9832c2e2255f2187512156b2?d=identicon)[KielD-01](/maintainers/KielD-01)

---

Top Contributors

[![KielD-01](https://avatars.githubusercontent.com/u/10153164?v=4)](https://github.com/KielD-01 "KielD-01 (24 commits)")

### Embed Badge

![Health badge](/badges/kield-01-cakephp3-json-pagination/health.svg)

```
[![Health](https://phpackages.com/badges/kield-01-cakephp3-json-pagination/health.svg)](https://phpackages.com/packages/kield-01-cakephp3-json-pagination)
```

###  Alternatives

[friendsofcake/cakepdf

CakePHP plugin for creating and/or rendering Pdfs, several Pdf engines supported.

3752.1M3](/packages/friendsofcake-cakepdf)[cakephp/bake

Bake plugin for CakePHP

11211.2M157](/packages/cakephp-bake)[dereuromark/cakephp-tools

A CakePHP plugin containing lots of useful and reusable tools

338920.1k32](/packages/dereuromark-cakephp-tools)[dereuromark/cakephp-queue

The Queue plugin for CakePHP provides deferred task execution.

308850.3k14](/packages/dereuromark-cakephp-queue)[dereuromark/cakephp-ide-helper

CakePHP IdeHelper Plugin to improve auto-completion

1862.1M26](/packages/dereuromark-cakephp-ide-helper)[dereuromark/cakephp-tinyauth

A CakePHP plugin to handle user authentication and authorization the easy way.

129228.6k10](/packages/dereuromark-cakephp-tinyauth)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
