neo4j/neo4j-bundle
Composer 安装命令:
composer require neo4j/neo4j-bundle
包简介
Symfony integration for Neo4j
README 文档
README
Installation
Make sure Composer is installed globally, as explained in the installation chapter of the Composer documentation.
Applications that don't use Symfony Flex
Step 1: Download the Bundle
Open a command console, enter your project directory and execute the following command to download the latest stable version of this bundle:
$ composer require neo4j/neo4j-bundle
Step 2: Enable the Bundle
Then, enable the bundle by adding it to the list of registered bundles
in the config/bundles.php file of your project:
// config/bundles.php return [ // ... \Neo4j\Neo4jBundle\Neo4jBundle::class => ['all' => true], ];
Documentation
The bundle is a convenient way of registering services. We register Drivers and one
Clients. You will always have alias for the default services:
- neo4j.driver
- neo4j.client
Minimal configuration
neo4j: drivers: default: ~
With the minimal configuration we have services named:
- neo4j.driver.default
- neo4j.client
Full configuration example
This example configures the client to contain two instances.
neo4j: profiling: true default_driver: high-availability drivers: - alias: high-availability dsn: 'neo4j://core1.mydomain.com:7687' authentication: type: 'oidc' token: '%neo4j.openconnect-id-token%' priority: 1 # Overriding the alias makes it so that there is a backup server to use in case # the routing table cannot be fetched through the driver with a higher priority # but the same alias. # Once the table is fetched it will use that information to auto-route as usual. - alias: high-availability dsn: 'neo4j://core2.mydomain.com:7687' priority: 0 authentication: type: 'oidc' token: '%neo4j.openconnect-id-token%' - alias: backup-instance dsn: 'bolt://localhost:7687' authentication: type: basic username: '%neo4j.backup-user%' password: '%neo4j.backup-pass%'
Testing
$ composer test
Example application
See an example application at https://github.com/neo4j-examples/movies-symfony-php-bolt (legacy project)
License
The MIT License (MIT). Please see License File for more information.
neo4j/neo4j-bundle 适用场景与选型建议
neo4j/neo4j-bundle 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 72.48k 次下载、GitHub Stars 达 82, 最近一次更新时间为 2016 年 12 月 12 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「database」 「symfony」 「bundle」 「graph」 「neo4j」 「cypher」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 neo4j/neo4j-bundle 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 neo4j/neo4j-bundle 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 neo4j/neo4j-bundle 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
Dibi is Database Abstraction Library for PHP
Store your language lines in the database, yaml or other sources
2lenet/EasyAdminPlusBundle
The bundle for easy using json-rpc api on your project
A package for automatically encrypting and decrypting Eloquent attributes in Laravel 5.5+, based on configuration settings.
Provide a way to secure accesses to all routes of an symfony application.
统计信息
- 总下载量: 72.48k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 82
- 点击次数: 11
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2016-12-12