mper / cypher-querybuilder
Cypher QueryBuilder
Installs: 32 510
Dependents: 0
Suggesters: 1
Security: 0
Stars: 3
Watchers: 2
Forks: 0
Open Issues: 0
Requires
- php: ^5.6 || ^7.0
Requires (Dev)
- phpunit/phpunit: 5.7.*
This package is auto-updated.
Last update: 2024-11-29 04:46:47 UTC
README
A php query builder for cypher queries.
WORK IN PROGRESS
Installation
$ composer require mper/cypher-querybuilder
Usage
<?php use MP\Cypher\QueryBuilder; $qb = new QueryBuilder(); $qb->addMatch() ->addNode('u', 'user') ->relation()->right() ->node('n'); $qb->where()->expr("u.name = 'foo'"); $qb->skip(10); $qb->limit(10); echo $qb->getQuery('u', 'n'); // MATCH (u:user)-[]->(n) WHERE u.name = 'foo' RETURN u,n SKIP 10 LIMIT 10