PHPackages                             agussuroyo/eloquent-wpdb - 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. agussuroyo/eloquent-wpdb

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

agussuroyo/eloquent-wpdb
========================

$wpdb that wrapped with Eloquent from Laravel

1.0.0(1y ago)211MITPHPCI passing

Since Mar 19Pushed 1y ago1 watchersCompare

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

READMEChangelog (1)Dependencies (4)Versions (2)Used By (0)

$wpdb with Eloquent from Laravel
================================

[](#wpdb-with-eloquent-from-laravel)

[![PHP Validator](https://github.com/jonyextenz/eloquent-wpdb/actions/workflows/php.yml/badge.svg)](https://github.com/jonyextenz/eloquent-wpdb/actions/workflows/php.yml)

- I made this just for personal use
- I do not guarantee anything for the use of this software
- Do It With Your Own Risk

Installation
============

[](#installation)

Using composer

```
composer require agussuroyo/eloquent-wpdb
```

Usage
=====

[](#usage)

Boot it first

```
$db = new \Agussuroyo\EloquentWpdb\DB();
$capsule = $db->capsule();
```

then do manual query builder

```
// query builder
$con = $capsule->getConnection();
$con->table('tableName')->get();
```

or model based query

```
// model based
class ModelName extends Illuminate\Database\Eloquent\Model
{

}

$all = ModelName::get();
$item = ModelName::find(123);
// do another Laravel query that we want...
```

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance46

Moderate activity, may be stable

Popularity8

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity37

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

Unknown

Total

1

Last Release

418d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/2c4ff9c71f1c9fa742c2c852482bb72be37a5f32768434b8f4ce2a828e8fe41d?d=identicon)[agussuroyo](/maintainers/agussuroyo)

---

Top Contributors

[![agussuroyo](https://avatars.githubusercontent.com/u/5734710?v=4)](https://github.com/agussuroyo "agussuroyo (19 commits)")

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Code StylePHP\_CodeSniffer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/agussuroyo-eloquent-wpdb/health.svg)

```
[![Health](https://phpackages.com/badges/agussuroyo-eloquent-wpdb/health.svg)](https://phpackages.com/packages/agussuroyo-eloquent-wpdb)
```

###  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)
