wikibase-solutions/php-cypher-dsl
最新稳定版本:6.0.0
Composer 安装命令:
composer require wikibase-solutions/php-cypher-dsl
包简介
A query builder for the Cypher query language written in PHP
README 文档
README
The php-cypher-dsl library provides a way to construct advanced Cypher
queries in an object-oriented and type-safe manner.
Documentation
The documentation can be found on the wiki here.
Installation
Requirements
php-cypher-dsl requires PHP 7.4 or greater; using the latest version of PHP
is highly recommended.
Installation through Composer
You can install php-cypher-dsl through composer by running the following
command:
composer require "wikibase-solutions/php-cypher-dsl"
Contributing
Please refer to CONTRIBUTING.md for information on how to contribute to this project.
Example
To construct a query to find all of Tom Hanks' co-actors, you can use the following code:
use function WikibaseSolutions\CypherDSL\node; use function WikibaseSolutions\CypherDSL\query; $tom = node("Person")->withProperties(["name" => "Tom Hanks"]); $coActors = node(); $statement = query() ->match($tom->relationshipTo(Query::node(), "ACTED_IN")->relationshipFrom($coActors, "ACTED_IN")) ->returning($coActors->property("name")) ->build();
统计信息
- 总下载量: 45.71k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 18
- 点击次数: 2
- 依赖项目数: 3
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2021-10-13