Giter Club home page Giter Club logo

laravel-neo4j-php-ogm-example's Introduction

Laravel Neo4j PHP OGM example project

This is a sample working Laravel 5.4 API project, using Neo4j PHP OGM developed by Christophe Willemsen.

It is basically configured with a Service Provider injecting the OGM Entity Manager into a Controller.

Example REST calls

CRUD operations are allowed to manipulate the User entity:

  • GET /user will retrive all the Users in the database;
  • GET /user/{id} will retrive a specific User;
  • POST /user will create a new User by a given response body like { "name":"Marco", "born":"27/10/1988" };
  • PUT /user/{id} will update a specific User by a given response body like { "name":"Marco", "born":"27/10/1988" };
  • DELETE /user/{id} will "detach delete" a specific User.

Configuration

As you can see in the .env file, those properties must be set like the following:

  • NEO4J_PROTOCOL=bolt
  • NEO4J_URL=localhost
  • NEO4J_PORT=7687
  • NEO4J_USER=neo4j
  • NEO4J_PASS=password

laravel-neo4j-php-ogm-example's People

Contributors

mfalcier avatar

Stargazers

 avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.