PHPackages                             yuges-code/laravel-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. [Database &amp; ORM](/categories/database)
4. /
5. yuges-code/laravel-orderable

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

yuges-code/laravel-orderable
============================

📶 Order generation for Laravel eloquent models

1.0.2(1y ago)22027MITPHPPHP ^8.4CI passing

Since Apr 26Pushed 1y ago1 watchersCompare

[ Source](https://github.com/yuges-code/laravel-orderable)[ Packagist](https://packagist.org/packages/yuges-code/laravel-orderable)[ Docs](https://yuges-code.github.io/laravel-orderable)[ GitHub Sponsors](https://github.com/yuges-code)[ RSS](/packages/yuges-code-laravel-orderable/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (3)Dependencies (2)Versions (4)Used By (7)

 [![](https://raw.githubusercontent.com/yuges-code/laravel-orderable/master/assets/logo.png)](https://raw.githubusercontent.com/yuges-code/laravel-orderable/master/assets/logo.png)

 **Build **[![GitHub Branch Check Runs](https://camo.githubusercontent.com/c3499de2ad2b856a8a3dfbe3a65d51b412a52e0439d6a7ff89353e6b1aace8c2/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f636865636b2d72756e732f79756765732d636f64652f6c61726176656c2d6f7264657261626c652f6d61696e)](https://camo.githubusercontent.com/c3499de2ad2b856a8a3dfbe3a65d51b412a52e0439d6a7ff89353e6b1aace8c2/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f636865636b2d72756e732f79756765732d636f64652f6c61726176656c2d6f7264657261626c652f6d61696e) [![GitHub Tests Action Status](https://camo.githubusercontent.com/d83fc808836f213f923288da30bb668916cab90d0ae39940cac1a8932f7302de/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f79756765732d636f64652f6c61726176656c2d6f7264657261626c652f74657374696e672e796d6c3f6272616e63683d6d61696e266c6162656c3d7465737473267374796c653d666c61742d737175617265)](https://camo.githubusercontent.com/d83fc808836f213f923288da30bb668916cab90d0ae39940cac1a8932f7302de/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f79756765732d636f64652f6c61726176656c2d6f7264657261626c652f74657374696e672e796d6c3f6272616e63683d6d61696e266c6162656c3d7465737473267374796c653d666c61742d737175617265)****

 ******Project** [![GitHub Release](https://camo.githubusercontent.com/e7f2c55c25e5cb7507ed0a8f6fdc65a5a351de20928b74efd53127091499a17f/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f762f72656c656173652f79756765732d636f64652f6c61726176656c2d6f7264657261626c65)](https://camo.githubusercontent.com/e7f2c55c25e5cb7507ed0a8f6fdc65a5a351de20928b74efd53127091499a17f/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f762f72656c656173652f79756765732d636f64652f6c61726176656c2d6f7264657261626c65) [![Packagist Downloads](https://camo.githubusercontent.com/ccf7b57c6a90a59c4543b263b670659d412f6407ca8b7b8ef49c242b957f7f30/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f79756765732d636f64652f6c61726176656c2d6f7264657261626c65)](https://camo.githubusercontent.com/ccf7b57c6a90a59c4543b263b670659d412f6407ca8b7b8ef49c242b957f7f30/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f79756765732d636f64652f6c61726176656c2d6f7264657261626c65) [![GitHub License](https://camo.githubusercontent.com/6d88f968251317038a62044fecd2c25e916bbcf2be0254f5b4ac2cfbd06d9fed/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f79756765732d636f64652f6c61726176656c2d6f7264657261626c65)](https://camo.githubusercontent.com/6d88f968251317038a62044fecd2c25e916bbcf2be0254f5b4ac2cfbd06d9fed/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f79756765732d636f64652f6c61726176656c2d6f7264657261626c65) [![Packagist Stars](https://camo.githubusercontent.com/929663e613a7d7e3eb48774313a7ff27b65da2648b1bf4d27be0c660a900b221/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f73746172732f79756765732d636f64652f6c61726176656c2d6f7264657261626c65)](https://camo.githubusercontent.com/929663e613a7d7e3eb48774313a7ff27b65da2648b1bf4d27be0c660a900b221/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f73746172732f79756765732d636f64652f6c61726176656c2d6f7264657261626c65) [![Packagist Dependency Version](https://camo.githubusercontent.com/bfd99f9f3e0d7482ce709e73aecba4f081cc6f4df1595026ff1bc9c714056e18/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f646570656e64656e63792d762f79756765732d636f64652f6c61726176656c2d6f7264657261626c652f706870)](https://camo.githubusercontent.com/bfd99f9f3e0d7482ce709e73aecba4f081cc6f4df1595026ff1bc9c714056e18/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f646570656e64656e63792d762f79756765732d636f64652f6c61726176656c2d6f7264657261626c652f706870)

 **Quality**

Laravel Orderable
=================

[](#laravel-orderable)

### 📶 Order generation for Laravel eloquent models

[](#-order-generation-for-laravel-eloquent-models)

💿 Installation
==============

[](#-installation)

### → Composer

[](#-composer)**** You can install the package via composer:

```
composer require yuges-code/laravel-orderable

```

### → Publishing Config

[](#-publishing-config)

Publishing the config file (config/orderable.php) is optional:

```
php artisan vendor:publish --provider="Yuges\Orderable\Providers\OrderableServiceProvider" --tag="orderable-configs"

```

### → Changing Migrations

[](#-changing-migrations)

You need to change the migration to create the order column:

```
$table->unsignedInteger('order')->default(1)->index();

```

or

```
$table->order();

```

### → Running Migrations

[](#-running-migrations)

After that, you need to run migrations:

```
php artisan migrate

```

🧪 Running Tests
===============

[](#-running-tests)

### → PHPUnit tests

[](#-phpunit-tests)

To run tests, run the following command:

```
composer test

```

⚖️ License
==========

[](#️-license)

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

🙆🏼‍♂️ Authors Information
=========================

[](#‍️-authors-information)

Created in 2025 by:

- [Yuges-code](https://github.com/yuges-code)
- [All Contributors](../../contributors)

###  Health Score

36

—

LowBetter than 82% of packages

Maintenance49

Moderate activity, may be stable

Popularity14

Limited adoption so far

Community16

Small or concentrated contributor base

Maturity56

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 66.7% 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 ~1 days

Total

3

Last Release

378d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/1aed716bd0f2c595ae974ee3aebc6f4c1488f8e5851c754a05a3467a0b70ed23?d=identicon)[yuges-code](/maintainers/yuges-code)

---

Top Contributors

[![goshasafonov](https://avatars.githubusercontent.com/u/48834605?v=4)](https://github.com/goshasafonov "goshasafonov (8 commits)")[![yuges-code](https://avatars.githubusercontent.com/u/186908593?v=4)](https://github.com/yuges-code "yuges-code (4 commits)")

---

Tags

laravelorderspackagephpyugesphplaravelpackageeloquentmodelsorderableyuges

### Embed Badge

![Health badge](/badges/yuges-code-laravel-orderable/health.svg)

```
[![Health](https://phpackages.com/badges/yuges-code-laravel-orderable/health.svg)](https://phpackages.com/packages/yuges-code-laravel-orderable)
```

###  Alternatives

[matchory/elasticsearch

The missing elasticsearch ORM for Laravel!

3059.0k](/packages/matchory-elasticsearch)[digitalcloud/laravel-blameable

Laravel package allow you to add created/updated by attributes on eloquent models

1543.3k4](/packages/digitalcloud-laravel-blameable)[salehhashemi/laravel-repository

Implementing the repository pattern for Laravel projects.

2010.5k](/packages/salehhashemi-laravel-repository)

PHPackages © 2026

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