【文件属性】:
文件名称:arangodb-php-odm:用于ArangoDB数据库的新PHP ODM
文件大小:1.17MB
文件格式:ZIP
更新时间:2021-02-03 11:12:12
php nosql php-library arangodb nosql-database
ArangoDB PHP ODM
ArangoDB的新PHP驱动程序
建立状态
开发
主
安装
使用作曲家
在项目根目录下运行以下命令。 composer require lvieira/arangodb-php-odm
用法
建立一个新的连接
use ArangoDB \ Connection \ Connection ;
// Set a new Connection
$ connection = new Connection ([
'endpoint' => 'http://yourarangohost:8529' ,
'username' => 'YourUserName' ,
'password' => 'YourSecretPasswd' ,
'database' => 'YourDatabase' ,
]);
// Alternatively, you can set an host and a port to connect
$ connection = new Connection ([
'host' => 'http://y