loutrux/yii2-orientdb

OrientDB extension for the Yii framework.

Installs: 32

Dependents: 0

Suggesters: 0

Security: 0

Stars: 2

Watchers: 2

Forks: 0

Open Issues: 0

Type:yii2-extension

v1.0.7 2019-02-14 17:15 UTC

This package is auto-updated.

Last update: 2024-04-15 04:03:12 UTC


README

68747470733a2f2f6f7269656e7464622e636f6d2f77702d636f6e74656e742f7468656d65732f6f7269656e7464622f696d672f6c6f676f2d77686974652e706e67

OrientDB Extension for Yii 2


This extension provides the OrientDB integration for the Yii framework 2.0.

For license information check the LICENSE-file.

Provide a OrientDB client connection from [Ostico PhpOrient extension]

Installation

This extension requires OrientDB server version 2.0 or higher.

The preferred way to install this extension is through composer.

Either run

php composer.phar require --prefer-dist loutrux/yii2-orientdb

or add

"loutrux/yii2-orientdb": "~1.0.0"

to the require section of your composer.json.

Configuration

To use this extension, simply add the following code in your application configuration:

return [
    //....
    'components' => [
        'orientdb' => [
            'class' => '\loutrux\orientdb\Connection',
            'hostname'  => 'localhost',
            'port'      => 2424,
            'username'  => 'root',
            'password'  => 'root_pass',
            'dbname'    => 'mydb'
        ],
    ],
];

Usage

This component is a OrientDB client helper

\Yii::$app->orientdb->client;