PHPackages                             pader/amphp-eloquent-mysql - 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. pader/amphp-eloquent-mysql

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

pader/amphp-eloquent-mysql
==========================

Async/coroutine amphp mysql eloquent adapter.

v1.0.0-beta.7(8mo ago)102252[1 issues](https://github.com/xpader/amphp-eloquent-mysql/issues)1MITPHP

Since Aug 11Pushed 8mo ago1 watchersCompare

[ Source](https://github.com/xpader/amphp-eloquent-mysql)[ Packagist](https://packagist.org/packages/pader/amphp-eloquent-mysql)[ RSS](/packages/pader-amphp-eloquent-mysql/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (7)Dependencies (2)Versions (8)Used By (1)

amphp-eloquent-mysql
====================

[](#amphp-eloquent-mysql)

Async/coroutine amphp eloquent mysql adapter.

Amphp mysql adapter to laravel eloquent, combining the connection pool, high concurrency of amphp mysql with the functionality and flexibility of eloquent.

Now you have a high concurrency eloquent.

php version &gt;= 8.1, no PDO required, no mysqli required.

Usage
-----

[](#usage)

```
use AmphpEloquentMysql\Connection;
use Illuminate\Database\Capsule\Manager;
use Illuminate\Support\Facades\DB;

$capsule = new Manager();

$capsule->getDatabaseManager()->extend('ampmysql', function($config, $name) {
	$config['name'] = $name;
	return new Connection($config);
});

// Create connection
$capsule->addConnection([
	'driver' => 'ampmysql',
	'host' => '127.0.0.1',
	'database' => 'test',
	'username' => 'root',
	'password' => '',
	'charset' => 'utf8mb4',
	'port' => 3306,
	'collation' => 'utf8mb4_general_ci',
	'prefix' => '',
]);

// Set can be visit as global static
$capsule->setAsGlobal();

// Boot Eloquent (can ignore this if you use QueryBuilder only)
$capsule->bootEloquent();

DB::swap($capsule->getDatabaseManager());

// Initialized finished, you can use it now

$item = DB::table('users')->first();
```

Used By
-------

[](#used-by)

### Wind Framework Component

[](#wind-framework-component)

-
-

###  Health Score

33

—

LowBetter than 75% of packages

Maintenance58

Moderate activity, may be stable

Popularity21

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity34

Early-stage or recently created project

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

Recently: every ~147 days

Total

7

Last Release

256d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/7917840032121e7f70f6d673d5481a7f2c37f2abcf81020ceac17394af44fc13?d=identicon)[pader](/maintainers/pader)

---

Top Contributors

[![xpader](https://avatars.githubusercontent.com/u/8629617?v=4)](https://github.com/xpader "xpader (14 commits)")

### Embed Badge

![Health badge](/badges/pader-amphp-eloquent-mysql/health.svg)

```
[![Health](https://phpackages.com/badges/pader-amphp-eloquent-mysql/health.svg)](https://phpackages.com/packages/pader-amphp-eloquent-mysql)
```

###  Alternatives

[owen-it/laravel-auditing

Audit changes of your Eloquent models in Laravel

3.4k33.0M95](/packages/owen-it-laravel-auditing)[staudenmeir/eloquent-json-relations

Laravel Eloquent relationships with JSON keys

1.1k5.8M24](/packages/staudenmeir-eloquent-json-relations)[bavix/laravel-wallet

It's easy to work with a virtual wallet.

1.3k1.1M11](/packages/bavix-laravel-wallet)[dragon-code/migrate-db

Easy data transfer from one database to another

15717.4k](/packages/dragon-code-migrate-db)[gearbox-solutions/eloquent-filemaker

A package for getting FileMaker records as Eloquent models in Laravel

6454.8k2](/packages/gearbox-solutions-eloquent-filemaker)[cybercog/laravel-ownership

Laravel Ownership simplify management of Eloquent model's owner.

9126.6k3](/packages/cybercog-laravel-ownership)

PHPackages © 2026

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