OrientDb Eloquent-like Driver for Laravel

dev-master 2018-02-11 19:30 UTC

This package is auto-updated.

Last update: 2024-04-23 22:16:19 UTC


README

Orientdb Eloquent-like driver for Laravel 5 using the binary protocol PhpOrient. (Not Ready For Production)

What is Oquent ?

Oquent goal is lets you use OrientDB as usual Eloquent.It's on development and should not be used in production for now.

Requirements

  • Laravel 5.5 or above
  • Orientdb Server 2.2

Features

  • You can use Larvel's Authentication
  • CRUD (Create, read, update, delete)
  • Paginate Model (need to be tested,but working for now)
  • Fetchplan (See OrientDb Fetching Strategies Docs)
  • Edges / Relations

Database Configuration

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

'default' => 'orientdb',

And optionally, if you want to use orientdb as a secondary connection

'default_nosql' => 'orientdb',

Add the connection defaults:

'connections' => [
    'orientdb' => [
            'driver'=> 'orientdb',
            'host' => '192.168.1.5', // Host 
            'port' => 2424, // We Use Binary so do not change it if not necessary 
            'database' => 'DatabaseName',
            'username' => 'root',
            'password' => 'passwordforuser'
    ],
]