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. snowrunescape/eloquent-orderable

ActiveLibrary

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

Baselime SDK is a client library

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

Since Jun 16Pushed 1y 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 1mo 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

24

—

LowBetter than 32% of packages

Maintenance34

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity42

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

687d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/3a792be74e14c481444d342d4740f7b52a87ee04b7bf1ab16ddc3b9f5e470cfe?d=identicon)[SnowRunescape](/maintainers/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

[mongodb/laravel-mongodb

A MongoDB based Eloquent model and Query builder for Laravel

7.1k7.2M71](/packages/mongodb-laravel-mongodb)[tightenco/parental

A simple eloquent trait that allows relationships to be accessed through child models.

1.5k1.8M5](/packages/tightenco-parental)[studio/laravel-totem

A Laravel package to manage your cron jobs through a beautiful dashboard

1.8k1.1M](/packages/studio-laravel-totem)[roots/acorn

Framework for Roots WordPress projects built with Laravel components.

9682.1M97](/packages/roots-acorn)[dyrynda/laravel-model-uuid

This package allows you to easily work with UUIDs in your Laravel models.

4802.8M8](/packages/dyrynda-laravel-model-uuid)[ryangjchandler/orbit

A flat-file database driver for Eloquent.

922256.2k5](/packages/ryangjchandler-orbit)

PHPackages © 2026

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