2017 © Pedro Peláez
 

library neo4j-php-ogm

PHP Object Graph Mapper for Neo4j

image

edizduman/neo4j-php-ogm

PHP Object Graph Mapper for Neo4j

  • Thursday, March 23, 2017
  • by edizduman
  • Repository
  • 1 Watchers
  • 0 Stars
  • 14 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 35 Forks
  • 0 Open issues
  • 16 Versions
  • 0 % Grown

The README.md

GraphAware Neo4j PHP OGM

Object Graph Mapper for Neo4j in PHP

Build Status Latest Stable Version Latest Unstable Version Total Downloads License, (*1)

Current Release : 1.0.0-RC1, (*2)

Basic Usage :

Storing / retrieving entities is done by declaring your entities with mapping annotations. It is very similar to the Doctrine2 ORM., (*3)

<?php

namespace Demo;

use GraphAware\Neo4j\OGM\Annotations as OGM;

/**
 * @OGM\Node(label="User")
 */
class User
{
    /**
     * @OGM\GraphId()
     */
    protected $id;

    /**
     * @OGM\Property(type="string")
     */
    protected $name;

    /**
     * @OGM\Property(type="int")
     */
    protected $age;


    // Getters and Setters
}
$this->em = $this->getEntityManager();
// The entity manager is generally created somewhere else in your application and available in the dependency injection container.
// More info about the creation is in the documentation

// Creating and Persisting a User

$bart = new User('Bart Johnson', 33);
$this->em->persist($bart);
$this->em->flush();

// Retrieving from the database

$john = $this->em->getRepository(User::class)->findOneBy(['name' => 'John Doe']);
echo $john->getAge();

// Updating
$john->setAge(35);
$this->em->flush();

Documentation

The documentation is available here., (*4)

Getting Help

For questions, please open a new thread on StackOverflow with the graphaware, neo4j and neo4j-php-ogm tags., (*5)

For isses, please raise a Github issue in the repository., (*6)

License

The library is released under the MIT License, refer to the LICENSE file bundled with this package., (*7)

The Versions

23/03 2017

dev-master

9999999-dev https://github.com/edizduman/neo4j-php-ogm

PHP Object Graph Mapper for Neo4j

  Sources   Download

Apache V2

The Requires

 

The Development Requires

by GraphAware Ltd
by Ediz Duman

database annotations mapper graph cypher mapping neo4j ogm

23/03 2017

1.0.3.RC1

1.0.3.0-RC1 https://github.com/edizduman/neo4j-php-ogm

PHP Object Graph Mapper for Neo4j

  Sources   Download

Apache V2

The Requires

 

The Development Requires

by GraphAware Ltd
by Ediz Duman

database annotations mapper graph cypher mapping neo4j ogm

23/03 2017

1.0.4.RC1

1.0.4.0-RC1 https://github.com/edizduman/neo4j-php-ogm

PHP Object Graph Mapper for Neo4j

  Sources   Download

Apache V2

The Requires

 

The Development Requires

by GraphAware Ltd
by Ediz Duman

database annotations mapper graph cypher mapping neo4j ogm

22/03 2017

1.0.2.RC1

1.0.2.0-RC1 https://github.com/edizduman/neo4j-php-ogm

PHP Object Graph Mapper for Neo4j

  Sources   Download

Apache V2

The Requires

 

The Development Requires

by GraphAware Ltd
by Ediz Duman

database annotations mapper graph cypher mapping neo4j ogm

22/03 2017

dev-remove-rel-movies

dev-remove-rel-movies https://github.com/graphaware/neo4j-php-ogm

PHP Object Graph Mapper for Neo4j

  Sources   Download

Apache V2

The Requires

 

The Development Requires

by GraphAware Ltd

database annotations mapper graph cypher mapping neo4j ogm

26/02 2017
11/11 2016
29/07 2016
29/07 2016
28/07 2016
27/07 2016
26/07 2016
23/05 2016

1.0.0-alpha4

1.0.0.0-alpha4 https://github.com/graphaware/neo4j-php-ogm

PHP Object Graph Mapper for Neo4j

  Sources   Download

Apache V2

The Requires

 

The Development Requires

by GraphAware Ltd

database annotations mapper graph cypher mapping neo4j ogm

22/05 2016

1.0.0-alpha3

1.0.0.0-alpha3 https://github.com/graphaware/neo4j-php-ogm

PHP Object Graph Mapper for Neo4j

  Sources   Download

Apache V2

The Requires

 

The Development Requires

by GraphAware Ltd

database annotations mapper graph cypher mapping neo4j ogm

22/05 2016

1.0.0-alpha2

1.0.0.0-alpha2 https://github.com/graphaware/neo4j-php-ogm

PHP Object Graph Mapper for Neo4j

  Sources   Download

Apache V2

The Requires

 

The Development Requires

by GraphAware Ltd

database annotations mapper graph cypher mapping neo4j ogm