PHPackages                             luciano-jr/aerospike-client-php - 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. luciano-jr/aerospike-client-php

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

luciano-jr/aerospike-client-php
===============================

The Aerospike PHP client as a C-extension for PHP

3.4.9(9y ago)1261Apache-2.0PHPPHP ~5.3

Since Oct 7Pushed 2y ago2 watchersCompare

[ Source](https://github.com/luciano-jr/aerospike-client-php)[ Packagist](https://packagist.org/packages/luciano-jr/aerospike-client-php)[ Docs](http://www.aerospike.com/docs/client/php/)[ RSS](/packages/luciano-jr-aerospike-client-php/feed)WikiDiscussions master Synced 4w ago

READMEChangelogDependenciesVersions (33)Used By (0)

Aerospike PHP Client
====================

[](#aerospike-php-client)

[![Build Status](https://camo.githubusercontent.com/bc3b8c4e9f6fd829367e92f2b9aad980740e02aac62cd00a8f105197f4051c80/68747470733a2f2f7472617669732d63692e6f72672f6165726f7370696b652f6165726f7370696b652d636c69656e742d7068702e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/aerospike/aerospike-client-php)[![Latest Release](https://camo.githubusercontent.com/428dff9088756a8a111326e45cb7f0d6ac711ebd3904eaf13da125c5bae84d50/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6165726f7370696b652f6165726f7370696b652d636c69656e742d7068702e737667)](https://img.shields.io/packagist/v/aerospike/aerospike-client-php.svg)[![Downloads](https://camo.githubusercontent.com/10dddd841e6dd2a6546680fecff482f9d36f98ad6eda473ac81e7fe276ca5c16/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6165726f7370696b652f6165726f7370696b652d636c69656e742d7068702e737667)](https://img.shields.io/packagist/dt/aerospike/aerospike-client-php.svg)[![License](https://camo.githubusercontent.com/84b6c8a32d15b3312e96ef3fb30936429e4af0cd254f6574b8cc06cb3d4b1973/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f6165726f7370696b652f6165726f7370696b652d636c69656e742d7068702e737667)](https://img.shields.io/packagist/l/aerospike/aerospike-client-php.svg)

The Aerospike PHP Client works with PHP 5.3.3+, 5.4, 5.5, 5.6 and 7.0 (tested with 7.0.5)

The PHP extension was tested to build on 64-bit

- Ubuntu 12.04 LTS, 14.04 LTS, Debian 6, 7, 8 and related distros using the **apt** package manager
- CentOS 6.x, 7.x, RedHat 6.x, 7.x and related distros using the **yum** package manager
- OS X 10.9 (Mavericks), 10.10 (Yosemite)

Windows is currently not supported.

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

[](#documentation)

Documentation of the Aerospike PHP Client may be found in the [doc directory](doc/README.md). The API described there is the [specification](doc/aerospike.md) for the PHP Client. Notes on the internals of the implementation are in [doc/internals.md](doc/internals.md).

[Example PHP code](examples/) can be found in the `examples/` directory.

Full documentation of the Aerospike database is available at

Dependencies
------------

[](#dependencies)

### CentOS and RedHat (yum)

[](#centos-and-redhat-yum)

```
sudo yum groupinstall "Development Tools"
sudo yum install openssl-devel
sudo yum install php-devel php-pear # unless PHP was manually installed

```

### Ubuntu and Debian (apt)

[](#ubuntu-and-debian-apt)

```
sudo apt-get install build-essential autoconf libssl-dev
sudo apt-get install php5-dev php-pear # unless PHP was manually installed

```

### OS X

[](#os-x)

By default OS X will be missing command line tools. On Mavericks (OS X 10.9) and higher those [can be installed without Xcode](http://osxdaily.com/2014/02/12/install-command-line-tools-mac-os-x/).

```
xcode-select --install # install the command line tools, if missing

```

The dependencies can be installed through the OS X package manager [Homebrew](http://brew.sh/).

```
brew update && brew doctor
brew install automake
brew install openssl

```

To switch PHP versions [see this gist](https://gist.github.com/rbotzer/198a04f2315e88c75322).

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

[](#installation)

### Building with Composer

[](#building-with-composer)

Using [Composer](https://getcomposer.org/) you can download and build the PHP extension:

```
composer require aerospike/aerospike-client-php "*"
find vendor/aerospike/aerospike-client-php/ -name "*.sh" -exec chmod +x {} \;
cd vendor/aerospike/aerospike-client-php/ && composer run-script post-install-cmd

```

### Building Manually

[](#building-manually)

To build the PHP extension manually you will need to fetch the [latest release](https://github.com/aerospike/aerospike-client-php/releases/latest)from Github, then run the `build.sh` script in the `src/aerospike/` directory.

```
cd src/aerospike
./build.sh

```

This will download the Aerospike C client SDK if necessary into `src/aerospike-client-c/`, and initiate `make`.

Installing the PHP Extension
----------------------------

[](#installing-the-php-extension)

To install the PHP extension do:

```
make install
php -i | grep ".ini "

```

Now edit the php.ini file. If PHP is configured --with-config-file-scan-dir (usually set to `/etc/php.d/`) you can create an `aerospike.ini` file in the directory, otherwise edit `php.ini` directly. Add the following directive:

```
extension=aerospike.so
aerospike.udf.lua_system_path=/path/to/aerospike/lua
aerospike.udf.lua_user_path=/path/to/aerospike/usr-lua

```

The *aerospike* module should now be available to the PHP CLI:

```
php -m | grep aerospike
aerospike

```

Remember that if you are using PHP with Nginx or Apache there is likely a separate `php.ini` config file for the web server Copy the `aerospike.ini`you have just created into `/etc/php5/apache2/conf.d/`, `/etc/php5/fpm/conf.d/`or wherever the configuration include directory of the web server is, then issue a graceful restart.

License
-------

[](#license)

The Aerospike PHP Client is made availabled under the terms of the Apache License, Version 2, as stated in the file [LICENSE](./LICENSE).

Individual files may be made available under their own specific license, all compatible with Apache License, Version 2. Please see individual files for details.

###  Health Score

31

—

LowBetter than 66% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community19

Small or concentrated contributor base

Maturity69

Established project with proven stability

 Bus Factor2

2 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 ~22 days

Recently: every ~67 days

Total

31

Last Release

3624d ago

PHP version history (2 changes)3.1.0PHP &gt;=5.3

3.2.0PHP ~5.3

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/146656441?v=4)[Luciano Jr](/maintainers/luciano-jr)[@Luciano-Jr](https://github.com/Luciano-Jr)

---

Top Contributors

[![PavanRao-GSLab](https://avatars.githubusercontent.com/u/5327752?v=4)](https://github.com/PavanRao-GSLab "PavanRao-GSLab (463 commits)")[![rbotzer](https://avatars.githubusercontent.com/u/133497?v=4)](https://github.com/rbotzer "rbotzer (350 commits)")[![aminer](https://avatars.githubusercontent.com/u/2181078?v=4)](https://github.com/aminer "aminer (120 commits)")[![PratimaMane-GSLab](https://avatars.githubusercontent.com/u/13764452?v=4)](https://github.com/PratimaMane-GSLab "PratimaMane-GSLab (55 commits)")[![RohitMagdum-GSLab](https://avatars.githubusercontent.com/u/13764606?v=4)](https://github.com/RohitMagdum-GSLab "RohitMagdum-GSLab (51 commits)")[![AashishPathak-GSLab](https://avatars.githubusercontent.com/u/8857909?v=4)](https://github.com/AashishPathak-GSLab "AashishPathak-GSLab (13 commits)")[![VishalMene-GSLab](https://avatars.githubusercontent.com/u/7699392?v=4)](https://github.com/VishalMene-GSLab "VishalMene-GSLab (7 commits)")[![sergeyklay](https://avatars.githubusercontent.com/u/1256298?v=4)](https://github.com/sergeyklay "sergeyklay (4 commits)")[![iamlucianojr](https://avatars.githubusercontent.com/u/3333167?v=4)](https://github.com/iamlucianojr "iamlucianojr (4 commits)")[![rmondragon](https://avatars.githubusercontent.com/u/989948?v=4)](https://github.com/rmondragon "rmondragon (3 commits)")[![wchu-citrusleaf](https://avatars.githubusercontent.com/u/612174?v=4)](https://github.com/wchu-citrusleaf "wchu-citrusleaf (1 commits)")[![jumping](https://avatars.githubusercontent.com/u/255390?v=4)](https://github.com/jumping "jumping (1 commits)")[![sudokien](https://avatars.githubusercontent.com/u/917026?v=4)](https://github.com/sudokien "sudokien (1 commits)")[![RaunakSabhani-GSLab](https://avatars.githubusercontent.com/u/13763712?v=4)](https://github.com/RaunakSabhani-GSLab "RaunakSabhani-GSLab (1 commits)")

---

Tags

databaseextensionaerospike

### Embed Badge

![Health badge](/badges/luciano-jr-aerospike-client-php/health.svg)

```
[![Health](https://phpackages.com/badges/luciano-jr-aerospike-client-php/health.svg)](https://phpackages.com/packages/luciano-jr-aerospike-client-php)
```

###  Alternatives

[johnitvn/yii2-ajaxcrud

Gii CRUD template for Single Page Ajax Administration for yii2

97213.6k16](/packages/johnitvn-yii2-ajaxcrud)[dmstr/yii2-db

Database extensions

19656.2k6](/packages/dmstr-yii2-db)[hzhihua/yii2-dump

Generate the schema from an existing database

1829.2k1](/packages/hzhihua-yii2-dump)

PHPackages © 2026

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