PHPackages                             angelcool-net/riak-client - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Database &amp; ORM](/categories/database)
4. /
5. angelcool-net/riak-client

ActiveLibrary[Database &amp; ORM](/categories/database)

angelcool-net/riak-client
=========================

Fork of the official basho/riak client that adds support for PHP 8 to GET and SET objects as needed, read PHP-8-NOTES.txt .

3.5(4y ago)136Apache-2.0PHPPHP &gt;=5.4

Since Feb 12Pushed 4y agoCompare

[ Source](https://github.com/angelcool-net/riak-php-client)[ Packagist](https://packagist.org/packages/angelcool-net/riak-client)[ Docs](http://basho.com/riak/)[ RSS](/packages/angelcool-net-riak-client/feed)WikiDiscussions develop Synced yesterday

READMEChangelog (1)Dependencies (2)Versions (26)Used By (0)

Riak Client for PHP
===================

[](#riak-client-for-php)

[![Packagist](https://camo.githubusercontent.com/d8da4291986d94a1be29ea7990149278227de47a57d52e2774c239a5b7a39cc0/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f626173686f2f7269616b2e7376673f6d61784167653d32353932303030)](https://packagist.org/packages/basho/riak)

**Riak PHP Client** is a library which makes it easy to communicate with [Riak](http://basho.com/riak/), an open source, distributed database that focuses on high availability, horizontal scalability, and *predictable*latency. This library communicates with Riak's HTTP interface using the cURL extension. If you want to communicate with Riak using the Protocol Buffers interface, use the [Official PHP PB Client](https://github.com/basho/riak-phppb-client). Both Riak and this library are maintained by [Basho Technologies](http://www.basho.com/).

To see other clients available for use with Riak visit our [Documentation Site](http://docs.basho.com/riak/latest/dev/using/libraries)

1. [Installation](#installation)
2. [Documentation](#documentation)
3. [Contributing](#contributing)
    - [An honest disclaimer](#an-honest-disclaimer)
4. [Roadmap](#roadmap)
5. [License and Authors](#license-and-authors)

Installation
------------

[](#installation)

### Dependencies

[](#dependencies)

- PHP 5.4+
- PHP Extensions: curl, json and openssl \[required for security features\]
- Riak 2.1+
- [Composer PHP Dependency Manager](https://getcomposer.org/)

### Composer Install

[](#composer-install)

This library has been added to [Packagist](https://packagist.org/packages/basho/) to simplify the installation process. Run the following [composer](https://getcomposer.org/) command:

```
$ composer require "basho/riak": "3.0.*"
```

Alternately, manually add the following to your `composer.json`, in the `require` section:

```
"require": {
    "basho/riak": "3.0.*"
}
```

And then run `composer update` to ensure the module is installed.

Documentation
-------------

[](#documentation)

- Master: [![Build Status](https://camo.githubusercontent.com/5fca5cfd2d6c7a5d184fbd076c9610161a75e8203020026ad5661227b08b87a8/68747470733a2f2f7365637572652e7472617669732d63692e6f72672f626173686f2f7269616b2d7068702d636c69656e742e706e673f6272616e63683d6d6173746572)](http://travis-ci.org/basho/riak-php-client)

A fully traversable version of the API documentation for this library can be found on [Github Pages](http://basho.github.io/riak-php-client).

### Example Usage

[](#example-usage)

Below is a short example of using the client. More substantial sample code is available [in examples](/examples).

```
// lib classes are included via the Composer autoloader files
use Basho\Riak;
use Basho\Riak\Node;
use Basho\Riak\Command;

// define the connection info to our Riak nodes
$nodes = (new Node\Builder)
    ->onPort(10018)
    ->buildCluster(['riak1.company.com', 'riak2.company.com', 'riak3.company.com',]);

// instantiate the Riak client
$riak = new Riak($nodes);

// build a command to be executed against Riak
$command = (new Command\Builder\StoreObject($riak))
    ->buildObject('some_data')
    ->buildBucket('users')
    ->build();

// Receive a response object
$response = $command->execute();

// Retrieve the Location of our newly stored object from the Response object
$object_location = $response->getLocation();
```

Contributing
------------

[](#contributing)

This repo's maintainers are engineers at Basho and we welcome your contribution to the project! You can start by reviewing [CONTRIBUTING.md](CONTRIBUTING.md) for information on everything from testing to coding standards.

### An honest disclaimer

[](#an-honest-disclaimer)

Due to our obsession with stability and our rich ecosystem of users, community updates on this repo may take a little longer to review.

The most helpful way to contribute is by reporting your experience through issues. Issues may not be updated while we review internally, but they're still incredibly appreciated.

Thank you for being part of the community! We love you for it.

Roadmap
-------

[](#roadmap)

- Current develop &amp; master branches contain feature support for Riak version 2.1+
- Add support for Riak TS Q2 2016

License and Authors
-------------------

[](#license-and-authors)

- Author: Christopher Mancini ()
- Author: Alex Moore ()
- Author: Luke Bakken ()

Copyright (c) 2015 Basho Technologies, Inc. Licensed under the Apache License, Version 2.0 (the "License"). For more details, see [License](License).

###  Health Score

31

—

LowBetter than 68% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community19

Small or concentrated contributor base

Maturity68

Established project with proven stability

 Bus Factor4

4 contributors hold 50%+ of commits

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~131 days

Recently: every ~483 days

Total

22

Last Release

1712d ago

Major Versions

v1.4.2 → 2.0.02015-03-25

v1.4.3 → v2.0.32015-08-21

v2.0.3 → v3.0.0-alpha2015-09-24

v2.1.1 → v3.0.0-beta2015-12-21

2.1.x-dev → v3.0.12016-01-13

PHP version history (2 changes)v1.4.0PHP &gt;=5.3.0

2.0.0PHP &gt;=5.4

### Community

Maintainers

![](https://www.gravatar.com/avatar/a4caa229e88b99940c096432be683dbbd4912af6e0caa8b36067d624242f91e4?d=identicon)[angelcool-net](/maintainers/angelcool-net)

---

Top Contributors

[![christophermancini](https://avatars.githubusercontent.com/u/131620?v=4)](https://github.com/christophermancini "christophermancini (39 commits)")[![alexmoore](https://avatars.githubusercontent.com/u/1438?v=4)](https://github.com/alexmoore "alexmoore (27 commits)")[![kevburnsjr](https://avatars.githubusercontent.com/u/20638?v=4)](https://github.com/kevburnsjr "kevburnsjr (16 commits)")[![kuenishi](https://avatars.githubusercontent.com/u/11440?v=4)](https://github.com/kuenishi "kuenishi (15 commits)")[![debo](https://avatars.githubusercontent.com/u/493257?v=4)](https://github.com/debo "debo (15 commits)")[![massung](https://avatars.githubusercontent.com/u/746946?v=4)](https://github.com/massung "massung (12 commits)")[![dshafik](https://avatars.githubusercontent.com/u/58074?v=4)](https://github.com/dshafik "dshafik (7 commits)")[![eveiga](https://avatars.githubusercontent.com/u/777195?v=4)](https://github.com/eveiga "eveiga (7 commits)")[![lukebakken](https://avatars.githubusercontent.com/u/514926?v=4)](https://github.com/lukebakken "lukebakken (6 commits)")[![lastzero](https://avatars.githubusercontent.com/u/301686?v=4)](https://github.com/lastzero "lastzero (5 commits)")[![acool247](https://avatars.githubusercontent.com/u/185548979?v=4)](https://github.com/acool247 "acool247 (5 commits)")[![MightyE](https://avatars.githubusercontent.com/u/881912?v=4)](https://github.com/MightyE "MightyE (4 commits)")[![dreverri](https://avatars.githubusercontent.com/u/34737?v=4)](https://github.com/dreverri "dreverri (4 commits)")[![robocoder](https://avatars.githubusercontent.com/u/922051?v=4)](https://github.com/robocoder "robocoder (3 commits)")[![beerriot](https://avatars.githubusercontent.com/u/190975?v=4)](https://github.com/beerriot "beerriot (3 commits)")[![Bilge](https://avatars.githubusercontent.com/u/470626?v=4)](https://github.com/Bilge "Bilge (3 commits)")[![abelperez](https://avatars.githubusercontent.com/u/113250?v=4)](https://github.com/abelperez "abelperez (2 commits)")[![mbbroberg](https://avatars.githubusercontent.com/u/1744971?v=4)](https://github.com/mbbroberg "mbbroberg (2 commits)")[![pfote](https://avatars.githubusercontent.com/u/134523?v=4)](https://github.com/pfote "pfote (2 commits)")[![wojons](https://avatars.githubusercontent.com/u/139396?v=4)](https://github.com/wojons "wojons (2 commits)")

---

Tags

clientdatadatabasenosqldriverphp8riakdatatypebashokvcrdt

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/angelcool-net-riak-client/health.svg)

```
[![Health](https://phpackages.com/badges/angelcool-net-riak-client/health.svg)](https://phpackages.com/packages/angelcool-net-riak-client)
```

###  Alternatives

[basho/riak

Official Riak client for PHP

159246.7k7](/packages/basho-riak)[datastax/php-driver

DataStax PHP Driver for Apache Cassandra

437521.5k19](/packages/datastax-php-driver)[mroosz/php-cassandra

A pure-PHP client for Apache Cassandra and ScyllaDB with support for CQL binary protocol v3, v4 and v5 (Cassandra 2.1+ incl. 3.x-5.x; ScyllaDB 6.2 and 2025.x), synchronous and asynchronous APIs, prepared statements, batches, result iterators, object mapping, SSL/TLS, and LZ4 compression.

205.6k2](/packages/mroosz-php-cassandra)[tbolier/php-rethink-ql

A clean and solid RethinkDB driver for PHP.

5211.7k](/packages/tbolier-php-rethink-ql)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
