sngularai/neo4j-bundle
Composer 安装命令:
composer require sngularai/neo4j-bundle
包简介
Symfony integration for Neo4j
关键字:
README 文档
README
Install
Via Composer
$ composer require neo4j/neo4j-bundle
If you want to use the an EntityManager you need to install a GraphAware OGM
$ composer require graphaware/neo4j-php-ogm:@rc
Enable the bundle in your kernel:
<?php // app/AppKernel.php public function registerBundles() { $bundles = array( // ... new Neo4j\Neo4jBundle\Neo4jBundle(), ); }
Documentation
The bundle is a convenient way of registering services. We register Connections,
Clients and EntityManagers. You will always have alias for the default services:
- neo4j.connection
- neo4j.client
- neo4j.entity_manager.*
Minimal configuration
neo4j: connections: default: ~
With the minimal configuration we have services named:
- neo4j.connection.default
- neo4j.client.default
- neo4j.entity_manager.default*
Full configuration
neo4j: profiling: enabled: true connections: default: scheme: bolt # default (must be either "http" or "bolt") host: localhost # default port: 7474 # optional, will be set to the proper driver's default port if not provided username: neo4j # default password: neo4j # default second_connection: username: foo password: bar third_connection: dsn: 'bolt://foo:bar@localhost:7687' clients: default: connections: [default, second_connection, third_connection] other_client: connections: [second_connection] foobar: ~ # foobar client will have the "default" connection entity_managers: default: client: other_client # defaults to "default" cache_dir: "%kernel.cache_dir%/neo4j" # defaults to system cache
With the configuration above we would have services named:
- neo4j.connection.default
- neo4j.connection.second_connection
- neo4j.client.default
- neo4j.client.other_client
- neo4j.client.other_foobar
- neo4j.entity_manager.default*
* Note: EntityManagers will only be available if graphaware/neo4j-php-ogm is installed.
Testing
$ composer test
Example application
See an example application at https://github.com/neo4j-examples/movies-symfony-php-bolt
License
The MIT License (MIT). Please see License File for more information.
sngularai/neo4j-bundle 适用场景与选型建议
sngularai/neo4j-bundle 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 756 次下载、GitHub Stars 达 0, 最近一次更新时间为 2023 年 01 月 09 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「neo4j」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 sngularai/neo4j-bundle 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 sngularai/neo4j-bundle 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 sngularai/neo4j-bundle 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
Symfony integration for Neo4j
A PHP Object Graph Mapper for Tinkerpop 3+ compatible Graph Databases (JanusGraph, Neo4j, etc.) that allows you to persist data and run gremlin queries.
Neo4j-PHP-Client is the most advanced PHP Client for Neo4j
Neo4j-PHP-Client is the most advanced PHP Client for Neo4j
Neo4j PHP legacy Client is a fork of the Graphaware Neo4j PHP Client
Neo4j-PHP-Client is the most advanced PHP Client for Neo4j
统计信息
- 总下载量: 756
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 8
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2023-01-09