PHPackages                             lartie/api-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. [API Development](/categories/api)
4. /
5. lartie/api-pagination

ActiveLibrary[API Development](/categories/api)

lartie/api-pagination
=====================

Laravel Api Pagination

623PHP

Since Apr 14Pushed 5y ago1 watchersCompare

[ Source](https://github.com/lartie/api-pagination)[ Packagist](https://packagist.org/packages/lartie/api-pagination)[ RSS](/packages/lartie-api-pagination/feed)WikiDiscussions master Synced today

READMEChangelogDependenciesVersions (1)Used By (0)

Laravel Api Pagination
======================

[](#laravel-api-pagination)

- [Installation](#installation)
    - [Composer](#composer)
- [Usage](#usage)
    - [How To Use](#how-to-use)
    - [Result](#result)
- [License](#license)

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

[](#installation)

### Composer

[](#composer)

```
composer require "lartie/api-pagination"
```

### ApiPaginationTrait

[](#apipaginationtrait)

Include `ApiPaginationTrait` trait inside your model.

```
class User extends Model
{
    use ApiPaginationTrait;
```

And that's it!

Usage
-----

[](#usage)

### How To Use

[](#how-to-use)

```
User::where('is_blocked', false)->apiPagination($limit, $offset);
```

### Result

[](#result)

```
[
    'items' => [...],
    'hasNextPage' => true, //or false
]
```

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE) for more information.

###  Health Score

18

—

LowBetter than 8% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity30

Early-stage or recently created project

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.

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/9404036?v=4)[Artemy](/maintainers/lartie)[@lartie](https://github.com/lartie)

---

Tags

apilaravellaravel-5-packagelaravel-packagepagination

### Embed Badge

![Health badge](/badges/lartie-api-pagination/health.svg)

```
[![Health](https://phpackages.com/badges/lartie-api-pagination/health.svg)](https://phpackages.com/packages/lartie-api-pagination)
```

###  Alternatives

[exsyst/swagger

A php library to manipulate Swagger specifications

35816.3M7](/packages/exsyst-swagger)[hubspot/api-client

Hubspot API client

24015.5M18](/packages/hubspot-api-client)[pocketmine/bedrock-protocol

An implementation of the Minecraft: Bedrock Edition protocol in PHP

172437.8k11](/packages/pocketmine-bedrock-protocol)[botman/driver-telegram

Telegram driver for BotMan

94452.6k6](/packages/botman-driver-telegram)

PHPackages © 2026

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