PHPackages                             thecodemill/eloquent-sort - 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. [Database &amp; ORM](/categories/database)
4. /
5. thecodemill/eloquent-sort

ActiveLibrary[Database &amp; ORM](/categories/database)

thecodemill/eloquent-sort
=========================

0.1(5y ago)011MITPHP

Since Apr 7Pushed 5y ago1 watchersCompare

[ Source](https://github.com/thecodemill/eloquent-sort)[ Packagist](https://packagist.org/packages/thecodemill/eloquent-sort)[ RSS](/packages/thecodemill-eloquent-sort/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (1)Versions (2)Used By (0)

EloquentFilter
==============

[](#eloquentfilter)

Add simple sortability to Eloquent models.

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

[](#installation)

Install the EloquentSort package via Composer:

```
composer require thecodemill/eloquent-sort

```

Usage
-----

[](#usage)

As the name suggests, this package is intended for use with [Eloquent](https://github.com/illuminate/database) and therefor works seamlessly with Laravel.

EloquentSort allows you to define sort handlers on any of your app's models to make sorting model queries much simpler. A sort handler is very similar to a local scope, but by using the `Model::sort()` method, any number of scopes may be applied at once without the need for chaining the individual scopes or query modifiers.

Author
------

[](#author)

- [Andrew Robinson](https://twitter.com/ap_robinson)

###  Health Score

20

—

LowBetter than 14% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity42

Maturing project, gaining track record

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

Unknown

Total

1

Last Release

1859d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/17d681dd2bcd90c88e3f945da141eef4ef3600e19a5973dd62c4cd22fa56688d?d=identicon)[TheCodeMill](/maintainers/TheCodeMill)

### Embed Badge

![Health badge](/badges/thecodemill-eloquent-sort/health.svg)

```
[![Health](https://phpackages.com/badges/thecodemill-eloquent-sort/health.svg)](https://phpackages.com/packages/thecodemill-eloquent-sort)
```

###  Alternatives

[owen-it/laravel-auditing

Audit changes of your Eloquent models in Laravel

3.4k33.0M95](/packages/owen-it-laravel-auditing)[staudenmeir/eloquent-json-relations

Laravel Eloquent relationships with JSON keys

1.1k5.8M24](/packages/staudenmeir-eloquent-json-relations)[bavix/laravel-wallet

It's easy to work with a virtual wallet.

1.3k1.1M11](/packages/bavix-laravel-wallet)[dragon-code/migrate-db

Easy data transfer from one database to another

15717.4k](/packages/dragon-code-migrate-db)[gearbox-solutions/eloquent-filemaker

A package for getting FileMaker records as Eloquent models in Laravel

6454.8k2](/packages/gearbox-solutions-eloquent-filemaker)[cybercog/laravel-ownership

Laravel Ownership simplify management of Eloquent model's owner.

9126.6k3](/packages/cybercog-laravel-ownership)

PHPackages © 2026

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