PHPackages                             prappo/wp-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. prappo/wp-eloquent

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

prappo/wp-eloquent
==================

Eloquent ORM for wordpress.

v3.0.5(1y ago)61.5k↓100%2MITPHPPHP ^7.3|^8.0

Since Nov 27Pushed 1y agoCompare

[ Source](https://github.com/prappo/wp-eloquent)[ Packagist](https://packagist.org/packages/prappo/wp-eloquent)[ Docs](https://github.com/prappo/wp-eloquent)[ RSS](/packages/prappo-wp-eloquent/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (6)DependenciesVersions (37)Used By (0)

Prappo WpEloquent
=================

[](#prappo-wpeloquent)

> This package extract from laravel 8.9

The WpEloquent component is a full database toolkit for PHP, providing an expressive query builder, ActiveRecord style ORM, and schema builder. It currently supports MySQL, Postgres, SQL Server, and SQLite.

Installing
----------

[](#installing)

```
composer require prappo/wp-eloquent
```

Usage Instructions
------------------

[](#usage-instructions)

First, boot Application with a connection.

**Use $wpdb connection**

```
use Prappo\WpEloquent\Application;

Application::bootWp();
```

**Use separated connection**

```
use Prappo\WpEloquent\Application;

Application::boot([
    'driver'    => 'mysql',
    'host'      => 'localhost',
    'database'  => 'database',
    'username'  => 'root',
    'password'  => 'password',
    'charset'   => 'utf8',
    'collation' => 'utf8_unicode_ci',
    'prefix'    => '',
]);
```

Once the Application booted. You may use it like so:

**Using The Query Builder**

```
use Prappo\WpEloquent\Support\Facades\DB;
$users = DB::table('users')->where('votes', '>', 100)->get();
```

Other core methods may be accessed directly from the Capsule in the same manner as from the DB facade:

```
use Prappo\WpEloquent\Support\Facades\DB;
$results = DB::select('select * from users where id = ?', [1]);
```

**Using The Schema Builder**

```
use Prappo\WpEloquent\Support\Facades\Schema;
Schema::create('users', function ($table) {
    $table->increments('id');
    $table->string('email')->unique();
    $table->timestamps();
});
```

**Using The Eloquent ORM**

```
class User extends Prappo\WpEloquent\Database\Eloquent\Model {}

$users = User::where('votes', '>', 1)->get();
```

For further documentation on using the various database facilities this library provides, consult the [Laravel framework documentation](https://laravel.com/docs/8.x/eloquent).

###  Health Score

40

—

FairBetter than 88% of packages

Maintenance34

Infrequent updates — may be unmaintained

Popularity25

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity74

Established project with proven stability

 Bus Factor1

Top contributor holds 87.1% 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 ~52 days

Recently: every ~71 days

Total

34

Last Release

623d ago

Major Versions

v1.0.12 → v2.02021-09-17

v2.1.8 → v3.0.02023-11-15

PHP version history (3 changes)v1.0PHP ^7.2

v2.0PHP ^7.3

v2.0.3PHP ^7.3|^8.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/278cd1377f6bf904827d086d5a641e4865cff318b99e4fa8f4d4ffd9d0e526df?d=identicon)[prappo](/maintainers/prappo)

---

Top Contributors

[![as247](https://avatars.githubusercontent.com/u/2641656?v=4)](https://github.com/as247 "as247 (54 commits)")[![prappo](https://avatars.githubusercontent.com/u/3511421?v=4)](https://github.com/prappo "prappo (7 commits)")[![tgeorgel](https://avatars.githubusercontent.com/u/11785727?v=4)](https://github.com/tgeorgel "tgeorgel (1 commits)")

---

Tags

laravelwordpressdatabaseormsqlwp-eloquentprappo

### Embed Badge

![Health badge](/badges/prappo-wp-eloquent/health.svg)

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

###  Alternatives

[illuminate/database

The Illuminate Database package.

2.8k52.4M9.3k](/packages/illuminate-database)[as247/wp-eloquent

Eloquent ORM for wordpress.

4524.1k1](/packages/as247-wp-eloquent)[dbout/wp-orm

WordPress ORM with Eloquent.

1279.6k1](/packages/dbout-wp-orm)[bigsinoos/j-eloquent

Convert eloquent date attributes to jalali (Persian) dates on the fly. (supports model propery access, toJson, toString and toArray).

224.7k](/packages/bigsinoos-j-eloquent)[ramadan/easy-model

A Laravel package for enjoyably managing database queries.

101.6k](/packages/ramadan-easy-model)

PHPackages © 2026

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