Download the PHP package dwoodard/neo4j-eloquent without Composer

On this page you can find all versions of the php package dwoodard/neo4j-eloquent. 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-eloquent

Neo4j Eloquent

Latest Version

A Laravel package that provides an Eloquent-style API for Neo4j graph database interactions with schema-less, dynamic operations.

Features

Schema-less Operations - No predefined models required
Eloquent-style API - Familiar Laravel query patterns
Multi-label Support - Handle nodes with multiple labels
Relationship Traversal - Fluent relationship navigation
Laravel Integration - Seamless service provider integration
Model-based Approach - Traditional Eloquent-style models
JSON Serialization - Proper JSON encoding out of the box
Auto Service Injection - No manual configuration required

Installation

Install the package via Composer:

Publish the configuration file:

Configuration

Add your Neo4j connection details to your .env file:

That's it! The package will automatically configure itself and inject the Neo4j service.

Usage

Model-based Approach (Recommended)

Create a model by extending the base Model class:

Now you can use familiar Eloquent methods:

Schema-less Operations

Create any type of node without predefined models:

Relationship Traversal

JSON Serialization

All Node and Model instances automatically serialize to JSON properly:

Raw Cypher Queries

Testing Connection

Test your Neo4j connection:

Advanced Features

Multi-Label Operations

Complex Queries

Configuration Options

The package configuration file (config/neo4j.php) supports:

Requirements

What's Fixed in This Version

This package includes several important fixes:

  1. Automatic Service Injection - No need to manually set up the Neo4j service
  2. Proper JSON Serialization - Node objects serialize correctly in API responses
  3. Eloquent-style Methods - all(), find(), create() work out of the box
  4. Model Base Class - Easier model creation with fillable attributes and casts
  5. Type Safety - Proper type declarations throughout

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

License

This package is open-sourced software licensed under the MIT license.

Support


All versions of neo4j-eloquent with dependencies

PHP Build Version
Package Version
Requires php Version ^8.2
illuminate/support Version ^10.0|^11.0|^12.0
laudis/neo4j-php-client Version ^3.0
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 dwoodard/neo4j-eloquent contains the following files

Loading the files please wait ....