https://github.com/loutrux/yii2-orientdb
https://github.com/loutrux/yii2-orientdb
orientdb yii2 yii2-component
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/loutrux/yii2-orientdb
- Owner: loutrux
- License: bsd-3-clause
- Created: 2018-09-23T14:13:01.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2019-02-14T17:22:22.000Z (over 7 years ago)
- Last Synced: 2024-11-25T00:15:40.208Z (over 1 year ago)
- Topics: orientdb, yii2, yii2-component
- Language: PHP
- Size: 7.81 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
OrientDB Extension for Yii 2
This extension provides the [OrientDB](https://orientdb.com/) integration for the [Yii framework 2.0](http://www.yiiframework.com).
For license information check the [LICENSE](LICENSE.md)-file.
Provide a OrientDB client connection from [[Ostico PhpOrient extension]](https://github.com/Ostico/PhpOrient)
Installation
------------
This extension requires OrientDB server version 2.0 or higher.
The preferred way to install this extension is through [composer](http://getcomposer.org/download/).
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:
```php
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;
```