heydavid713/neo4jphp
Composer 安装命令:
composer require heydavid713/neo4jphp
包简介
Wrapper for the Neo4j graph database REST interface
README 文档
README
Author: Josh Adell josh.adell@gmail.com
Copyright (c) 2011-2012
PHP Wrapper for the Neo4j graph database REST interface. The latest version of the original project was apparently abandoned. This fork was made to make this library compatible with PHP 7.
In-depth documentation and examples: http://github.com/jadell/neo4jphp/wiki
API documentation: http://jadell.github.com/neo4jphp
Install
Using Composer
- From the command line
composer require "heydavid713/neo4jphp" "dev-master" - In your PHP script
require("vendor/autoload.php");
Connection Test
Create a script named neo4jphp_connect_test.php:
<?php require('vendor/autoload.php'); $client = new Everyman\Neo4j\Client('localhost', 7474); print_r($client->getServerInfo());
Change localhost or 7474 to the host name and port of your Neo4j instance.
Execute the script:
> php neo4jphp_connect_test.php
If you see your server's information, then you have successfully connected!
Get Started
Full documentation on all the features of Neo4jPHP is available on the wiki: https://github.com/jadell/neo4jphp/wiki
Contributions
http://github.com/jadell/neo4jphp/graphs/contributors
All contributions are welcome! If you wish to contribute, please read the following guidelines:
- Before implementing new features, open an issue describing the feature.
- Include unit tests for any bug fixes or new features.
- Include only one bug fix or new feature per pull request.
- Make sure all unit tests run before submitting a pull request.
- Follow the coding style of the existing code: tabs for indentation, class/method braces on newlines, spaces after commas, etc.
- Contributing code means that you agree that any contributed code, documentation, or other artifacts may be released under the same license as the rest of the library.
Quick Contributor Setup
Install the developer tools:
> composer install --dev
After making your changes, run the unit tests and code style checker:
> vendor/bin/phing ci
Run only unit tests:
> vendor/bin/phing test
Run only style checker:
> vendor/bin/phing cs
Pull requests will not be accepted unless all tests pass and all code meets the existing style guidelines.
Special Thanks
- Jacob Hansson jacob@voltvoodoo.com - Cypher query support
- Nigel Small nigel@nigelsmall.name - GEOFF import/export
Changes
0.1.1
- PHP 7 compatibility.
0.1.0
- Cypher and Gremlin results handle nested arrays of nodes/relationships
- Batch request with no operations succeeds
- Delete index where index does not exist succeeds
0.0.7-beta
- Retrieve reference node in one operation
- Find and return only the first matching relationship
- Optionally use HTTPS and basic authentication
- Keep index configuration when retrieved from server
- Add Memcache caching plugin
- Do not allow use if cUrl is not detected
- PHAR is uncompressed by default
0.0.6-beta
- Create full-text indexes; easier instantiation of common index types
- Client can be initialized with a string and port instead of a Transport object
- Setting a
nullproperty has the same effect as removing the property - Handle scalar values from Gremlin scripts properly
- Cypher and Gremlin queries can take an array of named parameters
- Cypher no longer uses positional parameters
- Use server info to determine Cypher plugin endpoint
0.0.5-beta
- Open a batch on the client to apply to all subsequent data manipulation calls
- Batch operations correctly set and update locally cached entities
- Method chaining on node and relationship save, load and delete
- Instantiate new nodes and relationships from the client
- Change to cache initialization; new EntityCache object
0.0.4-beta
- Client::getServerInfo() retrieves server information and connection test
- Add to index brought up to Neo4j server 1.5 specification
- Return paths from Cypher queries
- Properly encode URL entities
- Connection and transport errors throw exceptions
- Fix "unable to connect" bug from returning false positive
heydavid713/neo4jphp 适用场景与选型建议
heydavid713/neo4jphp 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 108.41k 次下载、GitHub Stars 达 12, 最近一次更新时间为 2015 年 12 月 30 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「database」 「graph」 「neo4j」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 heydavid713/neo4jphp 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 heydavid713/neo4jphp 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 heydavid713/neo4jphp 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
Dibi is Database Abstraction Library for PHP
Symfony integration for Neo4j
Netgen Open Graph Bundle is an Ibexa Platform bundle that allows simple integration with Open Graph protocol.
Store your language lines in the database, yaml or other sources
A package for automatically encrypting and decrypting Eloquent attributes in Laravel 5.5+, based on configuration settings.
A tool for scraping URL resources (oEmbed, OpenGraph, Twitter cards, JSON-LD)
统计信息
- 总下载量: 108.41k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 12
- 点击次数: 20
- 依赖项目数: 11
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2015-12-30