2017 © Pedro Peláez
 

library neo4j-common

Common Utilities library for Neo4j

image

graphaware/neo4j-common

Common Utilities library for Neo4j

  • Thursday, June 8, 2017
  • by ikwattro
  • Repository
  • 12 Watchers
  • 12 Stars
  • 292,908 Installations
  • PHP
  • 3 Dependents
  • 0 Suggesters
  • 3 Forks
  • 0 Open issues
  • 47 Versions
  • 4 % Grown

The README.md

GraphAware PHP Neo4j Common

Library with common utility classes for Neo4j

Build Status Latest Stable Version, (*1)

Installation

Require the dependencies in your application :, (*2)

composer require graphaware/neo4j-common

Graph

Label

Object representation of a Node Label., (*3)


use GraphAware\Common\Graph\Label; $label = new Label("User"); echo $label->getName(); // Returns (string) "User" // or static construction $label = Label::label("User");

Node

Object Representation of a Node. The node object extends PropertyBag., (*4)


use GraphAware\Common\Graph\Node; $node = new Node(1, array("User", "Person")); $node->getId(); // Returns (int) 1 $node->getLabels(); // Returns an array of \GraphAware\Common\Graph\Label objects

Relationship

Object Representation of a Relationship. The relationship object extends PropertyBag., (*5)

use GraphAware\Common\Graph\Relationship;

$rel = new Relationship(1, RelationshipType::withName("RELATES"), $node, $node2);
echo $rel->getType(); // Returns (string) "RELATES"
var_dump($rel->isType(RelationshipType::withName("RELATES"))); // Returns (bool) true

Direction (Enum) : representation of a Relationship Direction


use GraphAware\Common\Graph\Direction; $direction = new Direction(Direction::INCOMING); echo $direction; // Returns (string) "INCOMING" // Or static call construction $direction = Direction::OUTGOING; echo $direction; // Returns (string) "OUTGOING"

Valid values are INCOMING, OUTGOING and BOTH., (*6)

RelationshipType

Object representation of a relationship type., (*7)

use GraphAware\Common\Graph\RelationshipType;

$relType = RelationshipType::withName("FOLLOWS");
echo $relType->getName(); // Returns (string) "FOLLOWS"
echo (string) $relType; // implements __toString method : Returns (string) "FOLLOWS"

Cypher

Statement and StatementCollection

Utility classes representing Cypher's statements. Both Statement and StatementCollection classes are taggable., (*8)

Contains also StatementInterface and StatementCollectionInterface used in most GraphAware's PHP libraries., (*9)

Statement

Represents a Cypher statement with a query and an array of parameters. Also the Statement accepts a tag argument default to null;, (*10)


use GraphAware\Common\Cypher\Statement; $statement = Statement::create("MATCH (n) WHERE id(n) = {id} RETURN n", array("id" => 324)); echo $statement->getQuery(); // Returns (string) "MATCH (n) WHERE id(n) = {id} RETURN n" echo count($statement->getParameters()); // Returns (int) 1
StatementCollection

Represents a collection of Statement objects. Is also Taggable., (*11)


use GraphAware\Common\Cypher\Statement GraphAware\Common\Cypher\StatementCollection; $collection = new StatementCollection(); $collection->add(Statement::create("MATCH (n) RETURN count(n)")); print_r($collection->getStatements()); echo $collection->isEmpty();

License

Apache License 2.0

Copyright 2015 Graphaware Limited

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

    http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

Support

Standard Community Support through the Github Issues and PR's workflow., (*12)

Enterprise support via your first level support contact., (*13)

The Versions

08/06 2017

dev-master

9999999-dev

Common Utilities library for Neo4j

  Sources   Download

ApacheV2

The Requires

 

The Development Requires

database graph cypher neo4j statement

08/06 2017

3.5.0

3.5.0.0

Common Utilities library for Neo4j

  Sources   Download

ApacheV2

The Requires

 

The Development Requires

database graph cypher neo4j statement

08/06 2017

dev-collections

dev-collections

Common Utilities library for Neo4j

  Sources   Download

ApacheV2

The Requires

 

The Development Requires

database graph cypher neo4j statement

23/02 2017

3.4.0

3.4.0.0

Common Utilities library for Neo4j

  Sources   Download

ApacheV2

The Requires

 

The Development Requires

database graph cypher neo4j statement

15/02 2017

3.3.1

3.3.1.0

Common Utilities library for Neo4j

  Sources   Download

ApacheV2

The Requires

 

The Development Requires

database graph cypher neo4j statement

16/10 2016

3.3.0

3.3.0.0

Common Utilities library for Neo4j

  Sources   Download

ApacheV2

The Requires

 

The Development Requires

database graph cypher neo4j statement

13/06 2016

3.2.1

3.2.1.0

Common Utilities library for Neo4j

  Sources   Download

ApacheV2

The Requires

 

The Development Requires

database graph cypher neo4j statement

13/06 2016

3.2.0

3.2.0.0

Common Utilities library for Neo4j

  Sources   Download

ApacheV2

The Requires

 

The Development Requires

database graph cypher neo4j statement

06/06 2016

3.1.1

3.1.1.0

Common Utilities library for Neo4j

  Sources   Download

ApacheV2

The Requires

 

The Development Requires

database graph cypher neo4j statement

13/05 2016

3.1.0

3.1.0.0

Common Utilities library for Neo4j

  Sources   Download

ApacheV2

The Requires

 

The Development Requires

database graph cypher neo4j statement

07/05 2016

3.0.0

3.0.0.0

Common Utilities library for Neo4j

  Sources   Download

ApacheV2

The Requires

 

The Development Requires

database graph cypher neo4j statement

06/05 2016

3.0.x-dev

3.0.9999999.9999999-dev

Common Utilities library for Neo4j

  Sources   Download

ApacheV2

The Requires

 

The Development Requires

database graph cypher neo4j statement

06/05 2016

2.2.1

2.2.1.0

Common Utilities library for Neo4j

  Sources   Download

ApacheV2

The Requires

 

The Development Requires

database graph cypher neo4j statement

03/05 2016

2.2.0

2.2.0.0

Common Utilities library for Neo4j

  Sources   Download

ApacheV2

The Requires

 

The Development Requires

database graph cypher neo4j statement

21/04 2016

2.1.0

2.1.0.0

Common Utilities library for Neo4j

  Sources   Download

ApacheV2

The Requires

 

The Development Requires

database graph cypher neo4j statement

12/04 2016

2.0.4

2.0.4.0

Common Utilities library for Neo4j

  Sources   Download

ApacheV2

The Requires

 

The Development Requires

database graph cypher neo4j statement

06/04 2016

2.0.3

2.0.3.0

Common Utilities library for Neo4j

  Sources   Download

ApacheV2

The Requires

 

The Development Requires

database graph cypher neo4j statement

18/03 2016

2.0.2

2.0.2.0

Common Utilities library for Neo4j

  Sources   Download

ApacheV2

The Requires

 

The Development Requires

database graph cypher neo4j statement

17/03 2016

2.0.1

2.0.1.0

Common Utilities library for Neo4j

  Sources   Download

ApacheV2

The Requires

 

The Development Requires

database graph cypher neo4j statement

15/03 2016

2.0.0

2.0.0.0

Common Utilities library for Neo4j

  Sources   Download

ApacheV2

The Requires

 

The Development Requires

database graph cypher neo4j statement

21/01 2016

1.14.0

1.14.0.0

Common Utilities library for Neo4j

  Sources   Download

ApacheV2

The Requires

 

The Development Requires

database graph cypher neo4j statement

13/01 2016

1.13.3

1.13.3.0

Common Utilities library for Neo4j

  Sources   Download

ApacheV2

The Requires

 

The Development Requires

database graph cypher neo4j statement

13/01 2016

1.13.2

1.13.2.0

Common Utilities library for Neo4j

  Sources   Download

ApacheV2

The Requires

 

The Development Requires

database graph cypher neo4j statement

12/01 2016

1.13.1

1.13.1.0

Common Utilities library for Neo4j

  Sources   Download

ApacheV2

The Requires

 

The Development Requires

database graph cypher neo4j statement

12/01 2016

1.13.0

1.13.0.0

Common Utilities library for Neo4j

  Sources   Download

ApacheV2

The Requires

 

The Development Requires

database graph cypher neo4j statement

05/01 2016

1.12.1

1.12.1.0

Common Utilities library for Neo4j

  Sources   Download

ApacheV2

The Requires

 

The Development Requires

database graph cypher neo4j statement

21/12 2015

1.12.0

1.12.0.0

Common Utilities library for Neo4j

  Sources   Download

ApacheV2

The Requires

 

The Development Requires

database graph cypher neo4j statement

21/12 2015

1.11.6

1.11.6.0

Common Utilities library for Neo4j

  Sources   Download

ApacheV2

The Requires

 

The Development Requires

database graph cypher neo4j statement

21/12 2015

1.11.5

1.11.5.0

Common Utilities library for Neo4j

  Sources   Download

ApacheV2

The Requires

 

The Development Requires

database graph cypher neo4j statement

21/12 2015

1.11.4

1.11.4.0

Common Utilities library for Neo4j

  Sources   Download

ApacheV2

The Requires

 

The Development Requires

database graph cypher neo4j statement

21/12 2015

1.11.3

1.11.3.0

Common Utilities library for Neo4j

  Sources   Download

ApacheV2

The Requires

 

The Development Requires

database graph cypher neo4j statement

21/12 2015

1.11.2

1.11.2.0

Common Utilities library for Neo4j

  Sources   Download

ApacheV2

The Requires

 

The Development Requires

database graph cypher neo4j statement

21/12 2015

1.11.1

1.11.1.0

Common Utilities library for Neo4j

  Sources   Download

ApacheV2

The Requires

 

The Development Requires

database graph cypher neo4j statement

21/12 2015

1.11.0

1.11.0.0

Common Utilities library for Neo4j

  Sources   Download

ApacheV2

The Requires

 

The Development Requires

database graph cypher neo4j statement

07/11 2015

1.10.0

1.10.0.0

Common Utilities library for Neo4j

  Sources   Download

ApacheV2

The Requires

 

The Development Requires

database graph cypher neo4j statement

06/11 2015

1.9.2

1.9.2.0

Common Utilities library for Neo4j

  Sources   Download

ApacheV2

The Requires

 

The Development Requires

database graph cypher neo4j statement

06/11 2015

1.9.1

1.9.1.0

Common Utilities library for Neo4j

  Sources   Download

ApacheV2

The Requires

 

The Development Requires

database graph cypher neo4j statement

26/10 2015

1.9.0

1.9.0.0

Common Utilities library for Neo4j

  Sources   Download

ApacheV2

The Requires

 

The Development Requires

database graph cypher neo4j statement

26/10 2015

1.8.0

1.8.0.0

Common Utilities library for Neo4j

  Sources   Download

ApacheV2

The Requires

 

The Development Requires

database graph cypher neo4j statement

26/10 2015

1.7.0

1.7.0.0

Common Utilities library for Neo4j

  Sources   Download

ApacheV2

The Requires

 

The Development Requires

database graph cypher neo4j statement

26/10 2015

1.6.0

1.6.0.0

Common Utilities library for Neo4j

  Sources   Download

ApacheV2

The Requires

 

The Development Requires

database graph cypher neo4j statement

25/10 2015

1.5.0

1.5.0.0

Common Utilities library for Neo4j

  Sources   Download

ApacheV2

The Requires

 

The Development Requires

database graph cypher neo4j statement

13/10 2015

1.4.0

1.4.0.0

Common Utilities library for Neo4j

  Sources   Download

ApacheV2

The Requires

 

The Development Requires

database graph cypher neo4j statement

12/10 2015

1.3.0

1.3.0.0

Common Utilities library for Neo4j

  Sources   Download

ApacheV2

The Requires

 

The Development Requires

database graph cypher neo4j statement

12/10 2015

1.2.0

1.2.0.0

Common Utilities library for Neo4j

  Sources   Download

ApacheV2

The Requires

 

The Development Requires

database graph cypher neo4j statement

12/10 2015

1.1.0

1.1.0.0

Common Utilities library for Neo4j

  Sources   Download

ApacheV2

The Requires

 

The Development Requires

database graph cypher neo4j statement

11/10 2015

1.0.0

1.0.0.0

Common Utilities library for Neo4j

  Sources   Download

ApacheV2

The Development Requires

database graph cypher neo4j statement