PHPackages                             snowrunescape/eloquent-orderable - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. snowrunescape/eloquent-orderable

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

snowrunescape/eloquent-orderable
================================

Baselime SDK is a client library

1.1.0(2y ago)011MITPHPPHP &gt;=7.4

Since Jun 16Pushed 2y ago1 watchersCompare

[ Source](https://github.com/SnowRunescape/eloquent-orderable)[ Packagist](https://packagist.org/packages/snowrunescape/eloquent-orderable)[ RSS](/packages/snowrunescape-eloquent-orderable/feed)WikiDiscussions master Synced 2d ago

READMEChangelog (3)Dependencies (3)Versions (4)Used By (0)

eloquent-orderable
==================

[](#eloquent-orderable)

The Orderable package provides functionality to manage the order of records in Laravel Eloquent models. Please note that this package currently only supports MySQL databases.

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

[](#installation)

You can install the package via composer:

```
composer require snowrunescape/orderable
```

Usage
-----

[](#usage)

Use the Orderable trait in your Eloquent model. Optionally, define the $sortable property in your model class to customize column names and options.

### Example

[](#example)

```
use Illuminate\Database\Eloquent\Model;
use SnowRunescape\Orderable\Orderable;

class YourModel extends Model
{
    use Orderable;

    /**
     * The Orderable trait configuration.
     *
     * @var array
     */
    protected $sortable = [
        "column_name" => "order",
        "sort_direction" => "ASC",
        "sort_when_creating" => true,
        "apply_global_scope" => true,
        "scope_columns" => [],
    ];
}

$item = YourModel::find(1);

YourModel::updateOrder($item, 2);
```

License
-------

[](#license)

eloquent-orderable is made available under the MIT License (MIT). Please see [License File](https://github.com/SnowRunescape/eloquent-orderable/blob/master/LICENSE) for more information.

###  Health Score

20

—

LowBetter than 13% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity43

Maturing project, gaining track record

 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 ~3 days

Total

3

Last Release

743d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/52182057?v=4)[Bruno Caitano](/maintainers/SnowRunescape)[@SnowRunescape](https://github.com/SnowRunescape)

---

Top Contributors

[![SnowRunescape](https://avatars.githubusercontent.com/u/52182057?v=4)](https://github.com/SnowRunescape "SnowRunescape (18 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/snowrunescape-eloquent-orderable/health.svg)

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

###  Alternatives

[psalm/plugin-laravel

Psalm plugin for Laravel

3355.3M346](/packages/psalm-plugin-laravel)[mongodb/laravel-mongodb

A MongoDB based Eloquent model and Query builder for Laravel

7.1k8.4M96](/packages/mongodb-laravel-mongodb)[pressbooks/pressbooks

Pressbooks is an open source book publishing tool built on a WordPress multisite platform. Pressbooks outputs books in multiple formats, including PDF, EPUB, web, and a variety of XML flavours, using a theming/templating system, driven by CSS.

45444.2k1](/packages/pressbooks-pressbooks)[flarum/core

Delightfully simple forum software.

201.4M2.3k](/packages/flarum-core)[efureev/laravel-trees

Multi-Tree structures for Laravel

14256.3k6](/packages/efureev-laravel-trees)[aedart/athenaeum

Athenaeum is a mono repository; a collection of various PHP packages

245.2k](/packages/aedart-athenaeum)

PHPackages © 2026

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