私はAlexです。実際、Orient(phpライブラリ)のコードベースの大部分を作成しました。
PHPでは、現在、tinkerpopのようなものはありませんが、Orientでキックスタートできるはずです。それを使用することは非常に簡単です:
<?php
namespace Congow\Orient;
use Congow\Orient\Binding\HttpBinding;
use Congow\Orient\Binding\BindingParameters;
require __DIR__.'/../autoload.php';
$parameters = BindingParameters::create('http://admin:admin@127.0.0.1:2480/friends');
$binding = new HttpBinding($parameters);
$response = $binding->query('select from friends where any() traverse(0,1) ( @rid = #5:3 ) and @rid <> #5:3');
$friends = $response->getResult();
foreach ($friends as $friend) {
echo $friend->name, "\n";
}
クエリを最初から作成する代わりに、クエリビルダーを使用することもできます。
$query = new Select(array('myClass'));
$query->orderBy("name ASC", false);
echo $query->getRaw() // SELECT FROM myClass ORDER BY name ASC
ライブラリのテスト、またはサンプルディレクトリのミニサンプルを見ることができます。
私たちはゆっくりと開発を続けているので、ここにいくつかのリソースがあります:http: //odino.org/blog/categories/orientdb/
乾杯、