承接 edwinfadilah/neoeloquent 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

edwinfadilah/neoeloquent

最新稳定版本:v2.0.1

Composer 安装命令:

composer require edwinfadilah/neoeloquent

包简介

Laravel wrapper for the Neo4j graph database REST interface

README 文档

README

Neo4j Graph Eloquent Driver for Laravel. This is a personal-use package which is cloned from https://github.com/Vinelab/NeoEloquent.

Quick Reference

Installation

Add the package to your composer.json and run composer update.

Laravel 6

6.x

{
    "require": {
        "edwinfadilah/neoeloquent": "2.0.*"
    }
}

Laravel 5

5.8

{
    "require": {
        "edwinfadilah/neoeloquent": "1.7.*"
    }
}

5.7

{
    "require": {
        "edwinfadilah/neoeloquent": "1.6.*"
    }
}

5.6

{
    "require": {
        "edwinfadilah/neoeloquent": "1.5.*"
    }
}

5.5

{
    "require": {
        "edwinfadilah/neoeloquent": "1.4.*"
    }
}

5.4

{
    "require": {
        "edwinfadilah/neoeloquent": "1.3.*"
    }
}

5.3

{
    "require": {
        "edwinfadilah/neoeloquent": "1.2.*"
    }
}

5.2

{
    "require": {
        "edwinfadilah/neoeloquent": "1.1.*"
    }
}

5.1

{
    "require": {
        "edwinfadilah/neoeloquent": "1.0.*"
    }
}

Add the service provider in app/config/app.php:

'EdwinFadilah\NeoEloquent\NeoEloquentServiceProvider',

The service provider will register all the required classes for this package and will also alias the Model class to NeoEloquent so you can simply extend NeoEloquent in your models.

Configuration

Connection

in app/config/database.php or in case of an environment-based configuration app/config/[env]/database.php make neo4j your default connection:

'default' => 'neo4j',

Add the connection defaults:

'connections' => [
    'neo4j' => [
        'driver' => 'neo4j',
        'host'   => 'localhost',
        'port'   => '7474',
        'username' => null,
        'password' => null,
        'ssl' => false
    ]
]

Migration Setup

If you're willing to have migrations:

  • create the folder app/database/labels
  • modify composer.json and add app/database/labels to the classmap array
  • run composer dump-autoload

Documentation

For further documentation information, please see it's original repository: https://github.com/Vinelab/NeoEloquent

统计信息

  • 总下载量: 11.35k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 1
  • 点击次数: 1
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 1
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2020-02-04