loutrux / yii2-orientdb
OrientDB extension for the Yii framework.
Installs: 32
Dependents: 0
Suggesters: 0
Security: 0
Stars: 2
Watchers: 1
Forks: 0
Open Issues: 0
Type:yii2-extension
Requires
- ostico/phporient: ~1.2.5
- yiisoft/yii2: ~2.0.14
README
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;