pixxcell-worldwide / laravel-riak
This package is abandoned and no longer maintained.
No replacement package was suggested.
v0.2
2016-07-13 08:39 UTC
Requires
- php: ^7.0
- basho/riak: 3.1.1
- illuminate/support: ^5.2
This package is not auto-updated.
Last update: 2018-07-29 21:04:49 UTC
README
Connect to a Riak instance.
Installation
Run this to include it in your project.
$ composer require pixxcell-worldwide/laravel-riak
Config
Add to app/config/database.php
these details.
/* |-------------------------------------------------------------------------- | Riak Database |-------------------------------------------------------------------------- */ 'riak' => array( 'nodes' => '127.0.0.1', 'port' => 8098 ),
Only works with single nodes.
Usage Example
$riak = app('riak'); $object = new Basho\Riak\Object('example'); $command = (new Basho\Riak\Command\Builder\StoreObject($riak)) ->withObject($object) ->build() ->execute();