Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/elasticorange/zenyatta
Laravel package for neo4j
https://github.com/elasticorange/zenyatta
laravel laravel-5-package neo4j
Last synced: about 7 hours ago
JSON representation
Laravel package for neo4j
- Host: GitHub
- URL: https://github.com/elasticorange/zenyatta
- Owner: ElasticOrange
- License: mit
- Created: 2017-02-20T17:13:55.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2017-02-20T18:14:45.000Z (almost 8 years ago)
- Last Synced: 2024-11-15T22:28:00.838Z (about 1 month ago)
- Topics: laravel, laravel-5-package, neo4j
- Language: PHP
- Homepage:
- Size: 19.5 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Contributing: CONTRIBUTING.md
- License: LICENSE.md
Awesome Lists containing this project
README
# zenyatta
[![Latest Version on Packagist][ico-version]][link-packagist]
[![Software License][ico-license]](LICENSE.md)
[![Build Status][ico-travis]][link-travis]
[![Coverage Status][ico-scrutinizer]][link-scrutinizer]
[![Quality Score][ico-code-quality]][link-code-quality]
[![Total Downloads][ico-downloads]][link-downloads]Library that interfaces neo4j for Laravel 5.x
We like PSR2
## Structure
If any of the following are applicable to your project, then the directory structure should follow industry best practises by being named the following.
```
config/
src/
```## Install
Via Composer
``` bash
$ composer require elasticorange/zenyatta:dev-master
```## Usage
Add the provider in `config/app.php`
``` php
'providers' => [
[...]
// Zenyatta interface for Neo4j
ElasticOrange\Zenyatta\ZenyattaServiceProvider::class,
```And the alias for good measure
``` php
'aliases' => [
[...]
// Zenyatta interface for Neo4j alias
'Zenyatta' => ElasticOrange\Zenyatta\Zenyatta::class,
```Publish the config file
``` bash
$ php artisan vendor:publish --tag=config
```Add your environment variables in your `.env` file. Check the published config file for the variable names.
After that you can use it in your beautiful application
``` php
use Zenyatta;
[...]$z = new Zenyatta();
$r = $z->getQuery("MATCH (n) RETURN n LIMIT 10");
```## Change log
Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.
## Testing
``` bash
$ composer test
```## Contributing
Please see [CONTRIBUTING](CONTRIBUTING.md) and [CONDUCT](CONDUCT.md) for details.
## Security
If you discover any security related issues, please email [email protected] instead of using the issue tracker.
## Credits
- [Daniel Luca][https://github.com/hydrarulz]
- [All Contributors][link-contributors]## License
The MIT License (MIT). Please see [License File](LICENSE.md) for more information.
[ico-version]: https://img.shields.io/packagist/v/elasticorange/zenyatta.svg?style=flat-square
[ico-license]: https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat-square
[ico-travis]: https://img.shields.io/travis/elasticorange/zenyatta/master.svg?style=flat-square
[ico-scrutinizer]: https://img.shields.io/scrutinizer/coverage/g/elasticorange/zenyatta.svg?style=flat-square
[ico-code-quality]: https://img.shields.io/scrutinizer/g/elasticorange/zenyatta.svg?style=flat-square
[ico-downloads]: https://img.shields.io/packagist/dt/elasticorange/zenyatta.svg?style=flat-square[link-packagist]: https://packagist.org/packages/elasticorange/zenyatta
[link-travis]: https://travis-ci.org/elasticorange/zenyatta
[link-scrutinizer]: https://scrutinizer-ci.com/g/elasticorange/zenyatta/code-structure
[link-code-quality]: https://scrutinizer-ci.com/g/elasticorange/zenyatta
[link-downloads]: https://packagist.org/packages/elasticorange/zenyatta
[link-author]: https://github.com/hydrarulz
[link-contributors]: ../../contributors