PHPackages                             apollopy/laravel-x-eloquent - 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. apollopy/laravel-x-eloquent

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

apollopy/laravel-x-eloquent
===========================

Enhanced Eloquent for Laravel

2.0.0(7y ago)115.7k[1 issues](https://github.com/apollopy/laravel-x-eloquent/issues)MITPHPPHP &gt;=5.6.4

Since Feb 19Pushed 7y ago1 watchersCompare

[ Source](https://github.com/apollopy/laravel-x-eloquent)[ Packagist](https://packagist.org/packages/apollopy/laravel-x-eloquent)[ RSS](/packages/apollopy-laravel-x-eloquent/feed)WikiDiscussions new Synced 4w ago

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

laravel-x-eloquent
==================

[](#laravel-x-eloquent)

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

[](#installation)

```
composer require apollopy/laravel-x-eloquent

```

After updating composer, add the service provider to the `providers` array in `config/app.php`

```
ApolloPY\Eloquent\EloquentServiceProvider::class,
```

**Laravel 5.5** uses Package Auto-Discovery, so doesn't require you to manually add the ServiceProvider.

Extension
---------

[](#extension)

### sortByIds

[](#sortbyids)

```
$ids = [3, 1, 2];
$posts = Post::find($ids); // collection -> [1, 2, 3]
$posts = $posts->sortByIds($ids); // collection -> [2 => 3, 0 => 1, 1 => 2]
$posts = $posts->values(); // collection -> [3, 1, 2]
```

### chunkByTime

[](#chunkbytime)

```
Topic::where('user_id', 1)->chunkByTime(3600, function ($topics) {
    //
});
```

###  Health Score

27

—

LowBetter than 47% of packages

Maintenance0

Infrequent updates — may be unmaintained

Popularity22

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity63

Established project with proven stability

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

Recently: every ~250 days

Total

6

Last Release

2770d ago

Major Versions

1.2.0 → 2.0.02018-11-29

PHP version history (2 changes)1.0.0PHP &gt;=5.5.9

2.0.0PHP &gt;=5.6.4

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/2421282?v=4)[ApolloPY](/maintainers/apollopy)[@apollopy](https://github.com/apollopy)

---

Top Contributors

[![apollopy](https://avatars.githubusercontent.com/u/2421282?v=4)](https://github.com/apollopy "apollopy (29 commits)")

---

Tags

laraveleloquent

### Embed Badge

![Health badge](/badges/apollopy-laravel-x-eloquent/health.svg)

```
[![Health](https://phpackages.com/badges/apollopy-laravel-x-eloquent/health.svg)](https://phpackages.com/packages/apollopy-laravel-x-eloquent)
```

###  Alternatives

[mongodb/laravel-mongodb

A MongoDB based Eloquent model and Query builder for Laravel

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

The Laravel magic applied to joins.

1.6k32.6M42](/packages/kirschbaum-development-eloquent-power-joins)[spatie/laravel-sluggable

Generate slugs when saving Eloquent models

1.6k12.9M295](/packages/spatie-laravel-sluggable)[watson/validating

Eloquent model validating trait.

9803.5M53](/packages/watson-validating)[yajra/laravel-oci8

Oracle DB driver for Laravel via OCI8

8793.2M23](/packages/yajra-laravel-oci8)[cybercog/laravel-love

Make Laravel Eloquent models reactable with any type of emotions in a minutes!

1.2k322.4k1](/packages/cybercog-laravel-love)

PHPackages © 2026

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