PHPackages                             offworks/laraquent - 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. offworks/laraquent

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

offworks/laraquent
==================

An out of Laravel Eloquent 5.1 extended use, and as a provider to different microframeworks.

v1.1.0(6y ago)145MITPHP

Since Jun 11Pushed 6y ago1 watchersCompare

[ Source](https://github.com/offworks/laraquent)[ Packagist](https://packagist.org/packages/offworks/laraquent)[ RSS](/packages/offworks-laraquent/feed)WikiDiscussions master Synced 2mo ago

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

laraquent
=========

[](#laraquent)

A quick out of Laravel Eloquent 5.5 setup.

I am just too lazy to figure out everything again everything I need to use eloquent. :p

More documentation can be found here :

-
-

### Usage

[](#usage)

Install through composer

```
composer require offworks/laraquent

```

Boot

```
$capsule = \Laraquent\Factory::boot([
    'host' => 'localhost',
    'name' => 'mydb',
    'user' => 'root',
    'pass' => ''
    ]);
```

### Active schema migration

[](#active-schema-migration)

table() method may now be used to listen to existing database, to perform either create or alter table, it will make changes to database accordingly.

- create table if the table does not exist.
- add column for existing table and skip exception if table doesn't exist
- does not drop table
- does not drop column

```
$schema = new \Laraquent\Schema($capsule->getConnection());

$schema->table('Book', function($table) {
    $table->increments('id');
    $table->string('title');
    $table->string('isbn');
    $table->timestamps();
});
```

### Prefixed relation method

[](#prefixed-relation-method)

Relation method now is to be prefixed with 'relate', if you use the extended base model. Example :

```
class Article extends \Laraquent\Entity
{
    public function relateAuthor()
    {
        return $this->hasOne('\App\Entity\Author', 'author_id');
    }
}
```

### Special thanks

[](#special-thanks)

Special thanks to Taylor Otwell, and Laravel communities for making an awesome framework, and for making it possible to use eloquent outside of larevel.

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity65

Established project with proven stability

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

Total

3

Last Release

2481d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/5824953?v=4)[Ahmad Rahimie](/maintainers/eimihar)[@eimihar](https://github.com/eimihar)

---

Top Contributors

[![eimihar](https://avatars.githubusercontent.com/u/5824953?v=4)](https://github.com/eimihar "eimihar (20 commits)")

---

Tags

laravelormmysqleloquentexedraphp mysql

### Embed Badge

![Health badge](/badges/offworks-laraquent/health.svg)

```
[![Health](https://phpackages.com/badges/offworks-laraquent/health.svg)](https://phpackages.com/packages/offworks-laraquent)
```

###  Alternatives

[kirschbaum-development/eloquent-power-joins

The Laravel magic applied to joins.

1.6k25.2M34](/packages/kirschbaum-development-eloquent-power-joins)[sofa/model-locking

Pseudo pessimistic model locking with broadcasted events for Laravel Eloquent ORM.

5048.0k](/packages/sofa-model-locking)[chocofamilyme/laravel-tarantool

A Tarantool based Eloquent ORM and Query builder for Laravel

182.3k](/packages/chocofamilyme-laravel-tarantool)[andreagroferreira/laravel-sync-tracker

A Laravel package for tracking entity synchronization status between systems

113.0k](/packages/andreagroferreira-laravel-sync-tracker)

PHPackages © 2026

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