我刚刚安装了一个新的symfony项目,并尝试通过以下操作安装neo4j包:composer需要neo4j/neo4j-bundle。下面是我得到的错误:
Cannot use neo4j/neo4j-bundle's latest version 0.4.2 as it requires php ^7.0 which is not satisfied by your platform.
In PackageDiscoveryTrait.php line 317:
Package neo4j/neo4j-bundle has requirements incompatible with your PHP version, PHP extensions and Composer version:
- neo4j/neo4j-bundle 0.4.2 requires php ^7.0 which does not match your installed version 8.2.0.
1条答案
按热度按时间zz2j4svz1#
根据GitHub,0.4.2版本已经有好几年了:https://github.com/neo4j-php/neo4j-symfony/tree/0.4.2所以我猜你必须在dev-master版本中安装bundle。
另外,也可以直接安装laudis/neo4j-php-client,不过需要手动示例化连接。我是这样做的(并将一些东西抽象到它们自己的库中),你可以在这里查看我的代码:https://github.com/neo4j-php/cypher-entity-manager和https://github.com/ember-nexus/api