tsf / laravel-neo4j-php-client
Laravel wrapper for Neo4j-PHP-Client
Installs: 1 057
Dependents: 0
Suggesters: 0
Security: 0
Stars: 4
Watchers: 1
Forks: 1
Open Issues: 0
Requires
- php: ^7.1
- graphaware/neo4j-php-client: ^4.8
- illuminate/support: 5.0 - 5.8 | ^6.0 | ^7.0
This package is auto-updated.
Last update: 2021-03-17 15:04:21 UTC
README
Simple laravel wrapper for GraphAware Neo4j PHP Client
Installation
Require this package in your composer.json
and update composer. Run / add either of the below two commands
"tsf/laravel-neo4j-php-client": "^1.0"
or
composer require tsf/laravel-neo4j-php-client=^1.0
After updating composer, add the ServiceProvider in app/config/app.php
TSF\Neo4jClient\Neo4jServiceProvider::class,
and the facade
'Neo4jClient' => TSF\Neo4jClient\Facades\Neo4jClient::class,
Run the artisan command to bring the config into your project
php artisan vendor:publish --provider="TSF\Neo4jClient\Neo4jServiceProvider"
Update config/neo4j.php
with your connection data.
How to use
Neo4jClient::run('CREATE (n:Person)');
For all available methods you can use please read GraphAware documentation here: GraphAware Neo4j PHP Client