PHPackages                             axn/laravel-database-extension - 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. axn/laravel-database-extension

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

axn/laravel-database-extension
==============================

Extension of the database section of the Laravel framework

5.1.0(1mo ago)12.4kMITPHPPHP ^8.4

Since Jul 20Pushed 4mo ago1 watchersCompare

[ Source](https://github.com/AXN-Informatique/laravel-database-extension)[ Packagist](https://packagist.org/packages/axn/laravel-database-extension)[ Docs](https://github.com/AXN-Informatique/laravel-database-extension)[ RSS](/packages/axn-laravel-database-extension/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (10)Dependencies (8)Versions (33)Used By (0)

Laravel Database Extension
==========================

[](#laravel-database-extension)

Extensions and improvements to the Database section of Laravel Framework.

Features
--------

[](#features)

- **[Natural sorting](docs/natural-sorting.md)**: Sort results naturally (1, 2, 10 instead of 1, 10, 2)
- **[Default order](docs/default-order.md)**: Automatically apply sorting on model queries
- **[Joins using relationships](docs/join-relations.md)**: Perform SQL joins using Eloquent relationships
- **[whereHasIn](docs/where-has-in.md)**: Performant alternative to `whereHas()` using `IN` instead of `EXISTS`
- **[whereLike](docs/where-like.md)**: Simplified search across multiple columns and relationships
- **[Extended SoftDeletes](docs/soft-deletes.md)**: `withoutTrashedExcept()` scope

Requirements
------------

[](#requirements)

- PHP 8.4+
- Laravel 12+

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

[](#installation)

```
composer require axn/laravel-database-extension
```

The service provider is automatically discovered by Laravel.

Documentation
-------------

[](#documentation)

Full documentation is available in the [docs](docs/_index.md) folder.

Upgrade guide
-------------

[](#upgrade-guide)

See [UPGRADE.md](UPGRADE.md) for instructions on upgrading between major versions.

License
-------

[](#license)

This package is open-sourced software licensed under the [MIT license](LICENSE).

###  Health Score

56

—

FairBetter than 98% of packages

Maintenance82

Actively maintained with recent releases

Popularity21

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity91

Battle-tested with a long release history

 Bus Factor1

Top contributor holds 50% 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 ~93 days

Total

31

Last Release

56d ago

Major Versions

1.2.0 → 2.0.02019-03-11

2.x-dev → 3.0.02021-10-06

3.x-dev → 4.0.02024-04-01

4.x-dev → 5.0.02025-03-18

PHP version history (3 changes)3.0.0PHP ^8.0

4.0.0PHP ^8.2

5.0.0PHP ^8.4

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/1314974?v=4)[Axel Neumann](/maintainers/axn)[@axn](https://github.com/axn)

---

Top Contributors

[![forxer](https://avatars.githubusercontent.com/u/407917?v=4)](https://github.com/forxer "forxer (31 commits)")[![lgtaxn](https://avatars.githubusercontent.com/u/23211553?v=4)](https://github.com/lgtaxn "lgtaxn (29 commits)")[![sylvainR37](https://avatars.githubusercontent.com/u/29980311?v=4)](https://github.com/sylvainR37 "sylvainR37 (2 commits)")

###  Code Quality

Static AnalysisRector

Code StyleLaravel Pint

### Embed Badge

![Health badge](/badges/axn-laravel-database-extension/health.svg)

```
[![Health](https://phpackages.com/badges/axn-laravel-database-extension/health.svg)](https://phpackages.com/packages/axn-laravel-database-extension)
```

###  Alternatives

[anourvalar/eloquent-serialize

Laravel Query Builder (Eloquent) serialization

11120.2M21](/packages/anourvalar-eloquent-serialize)[overtrue/laravel-versionable

Make Laravel model versionable.

585308.0k5](/packages/overtrue-laravel-versionable)[abbasudo/laravel-purity

elegant way to add filter and sort in laravel

514330.5k1](/packages/abbasudo-laravel-purity)[statamic-rad-pack/runway

Eloquently manage your database models in Statamic.

135192.6k5](/packages/statamic-rad-pack-runway)[dragon-code/laravel-deploy-operations

Performing any actions during the deployment process

240173.5k2](/packages/dragon-code-laravel-deploy-operations)[stayallive/laravel-eloquent-observable

Register Eloquent model event listeners just-in-time directly from the model.

2928.9k7](/packages/stayallive-laravel-eloquent-observable)

PHPackages © 2026

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