Download the PHP package juststeveking/neo4j-http-adapter without Composer
On this page you can find all versions of the php package juststeveking/neo4j-http-adapter. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download juststeveking/neo4j-http-adapter
More information about juststeveking/neo4j-http-adapter
Files in juststeveking/neo4j-http-adapter
Package neo4j-http-adapter
Short Description A slim psr compliant http client
License MIT
Informations about the package neo4j-http-adapter
Neo4j Http Adapter
This package is still a work in progress, what I have tested works so far but should not be used in a production environment yet
The purpose of this package is to provide a clean and easy way to work with the neo4j HTTP API v4 to run Cypher queries and return data.
Installation
Using composer:
You are then free to use it as needed within your projects.
Usage
Using this library is relatively simple.
Prepare your Adapter
The adapter build method accepts 2 parameters, connection string for your neo4j database and a database name that may be null.
Please note that an Exception will be thrown if your connection string does not start with either http
or https
Selecting a database to query against
Starting to build up a transaction
Once you have an active adapter, and have chosen your database, you will want to start running queries against it.
From here we are free to send this transaction to the server
A cleaner approach
The point with this package was to allow you to build up your queries and send them as you see fit, not how I think they should be handled. Here is an alternative method for sending queries:
Or if you would prefer to chain parts of the process:
If you want to use my other packages also, you can query like below:
Tests
There is a composer script available to run the tests:
However, if you are unable to run this please use the following command:
Security
If you discover any security related issues, please email [email protected] instead of using the issue tracker.