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.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package neo4j-http-adapter

Neo4j Http Adapter

Latest Version on Packagist run-tests Quality Score Total Downloads

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.


All versions of neo4j-http-adapter with dependencies

PHP Build Version
Package Version
Requires php Version ^7.4
guzzlehttp/guzzle Version ^6.5
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package juststeveking/neo4j-http-adapter contains the following files

Loading the files please wait ....