pixxcell-worldwide / laravel-riak
Installs: 102
Dependents: 0
Suggesters: 0
Security: 0
Stars: 2
Watchers: 3
Forks: 0
Open Issues: 0
pkg:composer/pixxcell-worldwide/laravel-riak
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();