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 yesterday

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 13% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity43

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

1914d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/7934963?v=4)[Andrew Robinson](/maintainers/TheCodeMill)[@thecodemill](https://github.com/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

[mongodb/laravel-mongodb

A MongoDB based Eloquent model and Query builder for Laravel

7.1k8.4M96](/packages/mongodb-laravel-mongodb)[kirschbaum-development/eloquent-power-joins

The Laravel magic applied to joins.

1.6k32.6M46](/packages/kirschbaum-development-eloquent-power-joins)[yajra/laravel-oci8

Oracle DB driver for Laravel via OCI8

8793.2M25](/packages/yajra-laravel-oci8)[awobaz/compoships

Laravel relationships with support for composite/multiple keys

1.2k11.7M46](/packages/awobaz-compoships)[bavix/laravel-wallet

It's easy to work with a virtual wallet.

1.3k1.3M19](/packages/bavix-laravel-wallet)[glushkovds/phpclickhouse-laravel

Adapter of the most popular library https://github.com/smi2/phpClickHouse to Laravel

2051.5M2](/packages/glushkovds-phpclickhouse-laravel)

PHPackages © 2026

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