PHPackages                             sgpatil/orientdb - 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. sgpatil/orientdb

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

sgpatil/orientdb
================

Laravel Orientdb Driver

v0.0.2(11y ago)111113[1 issues](https://github.com/sgpatil/orientdb/issues)MITPHP

Since Nov 1Pushed 10y ago4 watchersCompare

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

READMEChangelogDependencies (1)Versions (5)Used By (0)

Orientdb Driver for Laravel 4 \[Deprecated\]
============================================

[](#orientdb-driver-for-laravel-4--deprecated)

Orientdb Graph Eloquent Driver for Laravel 4

Looking for [Orientdb Driver for Laravel 5](https://github.com/sgpatil/orientdb-laravel-5)

Quick Reference
---------------

[](#quick-reference)

- [Installation](#installation)
- \[Configuration\](#Database Configuration)
- [Migration](#migration)

Installation
------------

[](#installation)

Add the package to your `composer.json` and run `composer update`.

```
{
    "require": {
        "sgpatil/orientdb": "@dev"
    }
}
```

Add the service provider in `app/config/app.php`:

```
'Sgpatil\Orientdb\OrientdbServiceProvider',
```

This will register all the required classes for this package.

Database Configuration
----------------------

[](#database-configuration)

Open `app/config/database.php`make `orientdb` your default connection:

```
'default' => 'orientdb',
```

Add the connection defaults:

```
'connections' => [
    'orientdb' => [
        'driver' => 'orientdb',
        'host'   => 'localhost',
        'port'   => '2480',
        'database' => 'database_name',
        'username' => 'root',
        'password' => 'root'
    ]
]
```

Add your database username and password in 'username' and 'password' field. In 'database\_name' add name of orientdb database which you want to connect and use.

Migration
---------

[](#migration)

To create a migration, you may use the orient command on the Artisan CLI:

```
php artisan orient:make create_users_table
```

The migration will be placed in your database/migrations folder, and will contain a timestamp which allows the framework to determine the order of the migrations.

The --table and --create options may also be used to indicate the name of the table, and whether the migration will be creating a new table:

```
php artisan orient:make add_votes_to_users_table --table=users_votes

php artisan orient:make create_users_table --create=users
```

To run migration

```
php artisan orient
```

How to Use
----------

[](#how-to-use)

```
class User extends Orientdb {

    protected $fillable = ['name', 'email'];
}

$user = User::create(['name' => 'Some Name', 'email' => 'some@email.com']);
```

You can use this by extending Orientdb into model class.

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance18

Infrequent updates — may be unmaintained

Popularity18

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity56

Maturing project, gaining track record

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

Total

3

Last Release

3996d ago

Major Versions

v0.0.2 → 2.0.x-dev2015-06-09

### Community

Maintainers

![](https://www.gravatar.com/avatar/22adb4a0213caf51ceafaf6a89662a08ecdd9cc4cdd7b71a4181c807f3216864?d=identicon)[sumit\_2803](/maintainers/sumit_2803)

### Embed Badge

![Health badge](/badges/sgpatil-orientdb/health.svg)

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

###  Alternatives

[doctrine/orm

Object-Relational-Mapper for PHP

10.2k285.3M6.2k](/packages/doctrine-orm)[jdorn/sql-formatter

a PHP SQL highlighting library

3.9k115.1M102](/packages/jdorn-sql-formatter)[illuminate/database

The Illuminate Database package.

2.8k52.4M9.4k](/packages/illuminate-database)[mongodb/mongodb

MongoDB driver library

1.6k64.0M546](/packages/mongodb-mongodb)[ramsey/uuid-doctrine

Use ramsey/uuid as a Doctrine field type.

90340.3M211](/packages/ramsey-uuid-doctrine)[reliese/laravel

Reliese Components for Laravel Framework code generation.

1.7k3.4M16](/packages/reliese-laravel)

PHPackages © 2026

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