New

Just launched: Vueblocks, a brand-new search engine for Vue packages! Explore Vueblocks →

sgpatil/orientdb

Laravel Orientdb Driver
111 11

Larablocks Analysis

sgpatil/orientdb works with any PHP project: the latest release (v0.0.2, Apr 15, 2015) doesn't depend on Laravel.

Recommendation checks

Not advised

Not advised: no release or commit in over 2 years.

  • No release or commit in over 2 years
  • No release in the last 12 months (last: Apr 15, 2015)
  • 0 downloads a month (needs 10,000)
  • 11 GitHub stars (needs 100)

State

Likely abandoned
  • No release or commit in over 2 years.
  • Last stable release: Apr 15, 2015.
  • No releases in the last 12 months.
  • First released: Feb 10, 2015.
  • 1 open issue on GitHub.

Data from Packagist and GitHub, checked by Larablocks on Dec 3, 2026.

Install
composer require sgpatil/orientdb
Latest Version:v0.0.2
License:MIT
Last Updated:Mar 8, 2016
Links: GitHub  ·  Packagist
Maintainer: sumit_2803

Orientdb Driver for Laravel 4 [Deprecated]

Orientdb Graph Eloquent Driver for Laravel 4

Looking for Orientdb Driver for Laravel 5

Quick Reference

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

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

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

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.

Related Packages

doctrine/dbal

Powerful PHP database abstraction layer (DBAL) with many features for database s...

670,032,257 9,703
laravel/framework

The Laravel Framework.

640,572,096 35,338
laravel/tinker

Powerful REPL for the Laravel framework.

546,909,908 7,440
laravel/serializable-closure

Laravel Serializable Closure provides an easy and secure way to serialize closur...

465,816,364 607
nunomaduro/collision

Cli error handling for console/command-line PHP applications.

431,187,642 4,660

Version History

Version Released License
v0.0.2 MIT
v0.0.1 MIT