PHPackages                             objective-php/eloquent-package - 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. objective-php/eloquent-package

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

objective-php/eloquent-package
==============================

Eloquent ORM integration from Laravel for Objective PHP

0146PHP

Since May 6Pushed 10y ago5 watchersCompare

[ Source](https://github.com/objective-php/eloquent-package)[ Packagist](https://packagist.org/packages/objective-php/eloquent-package)[ RSS](/packages/objective-php-eloquent-package/feed)WikiDiscussions master Synced yesterday

READMEChangelogDependenciesVersions (1)Used By (0)

Objective PHP / Eloquent Package
================================

[](#objective-php--eloquent-package)

Project topic
-------------

[](#project-topic)

This package add seamless integration for Eloquent ORM (native Laravel ORM).

It mainly allows configuring a connection to the database and registering the capsule as global, which is enough for creating and using Eloquent's style models in the application.

How to make it work
-------------------

[](#how-to-make-it-work)

### Install the package

[](#install-the-package)

Use composer to import the package in your application:

```
# cd to your project root, where is the composer.json file stored
composer require objective-php/eloquent-package dev-master

```

### Activate it

[](#activate-it)

You have to plug the package Middleware to your application to activate it:

```
use ObjectivePHP\Application\ApplicationInterface;
use ObjectivePHP\EloquentPackage\EloquentPackage;

class Application extends ApplicationInterface
{
    public function init()
    {
        // ...

        // plug Eloquent package to any requests
        //
        // add some filter as extra plug() parameters to condition package actual activation
        $this->on('bootstrap')->plug(new EloquentPackage());

        // ...
    }
}
```

### Configure it

[](#configure-it)

In order to make Eloquent fully functional, you have to define a database connection. This configuration has to be done in the application configuration. When using Objective PHP starter kit, all you have to do is to create a config file in the `app/config` folder, name it whathever you want (but eloquent.php seems to be a decent name for this purpose :)) and then return a config array like the following:

```
return
    [
        'eloquent.driver'          => 'mysql',
        'eloquent.host'            => '127.0.0.1',
        'eloquent.username'        => /* user name */,
        'eloquent.password'        => /* plain text password */,
        'eloquent.database'        => /* database name */
        // 'eloquent.charset'      => /* defaults to 'utf8' */,
        // 'eloquent.collation'    => /* defaults to 'utf8_unicode_ci' */
    ];
```

###  Health Score

22

—

LowBetter than 21% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/35ff61d55f3f648d8c1046aac3892fba4781067c98c5cf7e364767f8ca033166?d=identicon)[gauthier](/maintainers/gauthier)

---

Top Contributors

[![gauthier](https://avatars.githubusercontent.com/u/32955?v=4)](https://github.com/gauthier "gauthier (11 commits)")

### Embed Badge

![Health badge](/badges/objective-php-eloquent-package/health.svg)

```
[![Health](https://phpackages.com/badges/objective-php-eloquent-package/health.svg)](https://phpackages.com/packages/objective-php-eloquent-package)
```

###  Alternatives

[jdorn/sql-formatter

a PHP SQL highlighting library

3.9k117.2M117](/packages/jdorn-sql-formatter)[propel/propel1

Propel is an open-source Object-Relational Mapping (ORM) for PHP5.

8351.6M87](/packages/propel-propel1)[jfelder/oracledb

Oracle DB driver for Laravel

11518.4k](/packages/jfelder-oracledb)

PHPackages © 2026

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