2017 © Pedro Peláez
 

library aerospike-client-php

image

luciano-jr/aerospike-client-php

  • Monday, March 5, 2018
  • by luciano-jr
  • Repository
  • 2 Watchers
  • 1 Stars
  • 14 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 43 Forks
  • 1 Open issues
  • 39 Versions
  • 0 % Grown

The README.md

Aerospike PHP Client

Build Status Latest Release Downloads License, (*1)

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

The PHP extension was tested to build on 64-bit, (*3)

  • 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., (*4)

Documentation

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

Example PHP code can be found in the examples/ directory., (*6)

Full documentation of the Aerospike database is available at http://www.aerospike.com/docs/, (*7)

Dependencies

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)

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

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., (*8)

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

The dependencies can be installed through the OS X package manager Homebrew., (*9)

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

To switch PHP versions see this gist., (*10)

Installation

Building with Composer

Using Composer you can download and build the PHP extension:, (*11)

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

To build the PHP extension manually you will need to fetch the latest release from Github, then run the build.sh script in the src/aerospike/ directory., (*12)

cd src/aerospike
./build.sh

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

Installing the PHP Extension

To install the PHP extension do:, (*14)

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:, (*15)

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:, (*16)

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., (*17)

License

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

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

The Versions

05/03 2018

0.9.0

0.9.0.0

  Sources   Download

05/03 2018

1.0.0

1.0.0.0

  Sources   Download

05/03 2018

3.0.0

3.0.0.0

  Sources   Download

05/03 2018

3.0.1

3.0.1.0

  Sources   Download

05/03 2018

3.0.2

3.0.2.0

  Sources   Download

05/03 2018

3.0.3

3.0.3.0

  Sources   Download

19/08 2016

dev-master

9999999-dev http://www.aerospike.com/docs/client/php/

The Aerospike PHP client as a C-extension for PHP

  Sources   Download

Apache-2.0

The Requires

  • php >=5.3

 

database extension aerospike

16/08 2016

dev-add-ubuntu16-on-build

dev-add-ubuntu16-on-build http://www.aerospike.com/docs/client/php/

The Aerospike PHP client as a C-extension for PHP

  Sources   Download

Apache-2.0

The Requires

  • php ~5.3

 

database extension aerospike

29/07 2016

3.4.9

3.4.9.0 http://www.aerospike.com/docs/client/php/

The Aerospike PHP client as a C-extension for PHP

  Sources   Download

Apache-2.0

The Requires

  • php ~5.3

 

database extension aerospike

08/04 2016

3.4.8

3.4.8.0 http://www.aerospike.com/docs/client/php/

The Aerospike PHP client as a C-extension for PHP

  Sources   Download

Apache-2.0

The Requires

  • php ~5.3

 

database extension aerospike

05/03 2016

3.4.7

3.4.7.0 http://www.aerospike.com/docs/client/php/

The Aerospike PHP client as a C-extension for PHP

  Sources   Download

Apache-2.0

The Requires

  • php ~5.3

 

database extension aerospike

25/12 2015

3.4.6

3.4.6.0 http://www.aerospike.com/docs/client/php/

The Aerospike PHP client as a C-extension for PHP

  Sources   Download

Apache-2.0

The Requires

  • php ~5.3

 

database extension aerospike

03/11 2015

3.4.5

3.4.5.0 http://www.aerospike.com/docs/client/php/

The Aerospike PHP client as a C-extension for PHP

  Sources   Download

Apache-2.0

The Requires

  • php ~5.3

 

database extension aerospike

31/10 2015

3.4.4

3.4.4.0 http://www.aerospike.com/docs/client/php/

The Aerospike PHP client as a C-extension for PHP

  Sources   Download

Apache-2.0

The Requires

  • php ~5.3

 

database extension aerospike

23/10 2015

3.4.3

3.4.3.0 http://www.aerospike.com/docs/client/php/

The Aerospike PHP client as a C-extension for PHP

  Sources   Download

Apache-2.0

The Requires

  • php ~5.3

 

database extension aerospike

04/09 2015

3.4.2

3.4.2.0 http://www.aerospike.com/docs/client/php/

The Aerospike PHP client as a C-extension for PHP

  Sources   Download

Apache-2.0

The Requires

  • php ~5.3

 

database extension aerospike

10/08 2015

3.4.1

3.4.1.0 http://www.aerospike.com/docs/client/php/

The Aerospike PHP client as a C-extension for PHP

  Sources   Download

Apache-2.0

The Requires

  • php ~5.3

 

database extension aerospike

21/07 2015

3.4.0

3.4.0.0 http://www.aerospike.com/docs/client/php/

The Aerospike PHP client as a C-extension for PHP

  Sources   Download

Apache-2.0

The Requires

  • php ~5.3

 

database extension aerospike

19/06 2015

3.3.16

3.3.16.0 http://www.aerospike.com/docs/client/php/

The Aerospike PHP client as a C-extension for PHP

  Sources   Download

Apache-2.0

The Requires

  • php ~5.3

 

database extension aerospike

05/05 2015

3.3.15

3.3.15.0 http://www.aerospike.com/docs/client/php/

The Aerospike PHP client as a C-extension for PHP

  Sources   Download

Apache-2.0

The Requires

  • php ~5.3

 

database extension aerospike

25/04 2015

3.3.14

3.3.14.0 http://www.aerospike.com/docs/client/php/

The Aerospike PHP client as a C-extension for PHP

  Sources   Download

Apache-2.0

The Requires

  • php ~5.3

 

database extension aerospike

19/04 2015

3.3.13

3.3.13.0 http://www.aerospike.com/docs/client/php/

The Aerospike PHP client as a C-extension for PHP

  Sources   Download

Apache-2.0

The Requires

  • php ~5.3

 

database extension aerospike

04/04 2015

3.3.12

3.3.12.0 http://www.aerospike.com/docs/client/php/

The Aerospike PHP client as a C-extension for PHP

  Sources   Download

Apache-2.0

The Requires

  • php ~5.3

 

database extension aerospike

06/03 2015

3.3.11

3.3.11.0 http://www.aerospike.com/docs/client/php/

The Aerospike PHP client as a C-extension for PHP

  Sources   Download

Apache-2.0

The Requires

  • php ~5.3

 

database extension aerospike

26/02 2015

3.3.10

3.3.10.0 http://www.aerospike.com/docs/client/php/

The Aerospike PHP client as a C-extension for PHP

  Sources   Download

Apache-2.0

The Requires

  • php ~5.3

 

database extension aerospike

04/02 2015

3.3.9

3.3.9.0 http://www.aerospike.com/docs/client/php/

The Aerospike PHP client as a C-extension for PHP

  Sources   Download

Apache-2.0

The Requires

  • php ~5.3

 

database extension aerospike

29/01 2015

3.3.8

3.3.8.0 http://www.aerospike.com/docs/client/php/

The Aerospike PHP client as a C-extension for PHP

  Sources   Download

Apache-2.0

The Requires

  • php ~5.3

 

database extension aerospike

22/01 2015

3.3.7

3.3.7.0 http://www.aerospike.com/docs/client/php/

The Aerospike PHP client as a C-extension for PHP

  Sources   Download

Apache-2.0

The Requires

  • php ~5.3

 

database extension aerospike

15/01 2015

3.3.6

3.3.6.0 http://www.aerospike.com/docs/client/php/

The Aerospike PHP client as a C-extension for PHP

  Sources   Download

Apache-2.0

The Requires

  • php ~5.3

 

database extension aerospike

09/01 2015

3.3.5

3.3.5.0 http://www.aerospike.com/docs/client/php/

The Aerospike PHP client as a C-extension for PHP

  Sources   Download

Apache-2.0

The Requires

  • php ~5.3

 

database extension aerospike

30/12 2014

3.3.4

3.3.4.0 http://www.aerospike.com/docs/client/php/

The Aerospike PHP client as a C-extension for PHP

  Sources   Download

Apache-2.0

The Requires

  • php ~5.3

 

database extension aerospike

24/12 2014

3.3.3

3.3.3.0 http://www.aerospike.com/docs/client/php/

The Aerospike PHP client as a C-extension for PHP

  Sources   Download

Apache-2.0

The Requires

  • php ~5.3

 

database extension aerospike

05/12 2014

3.3.2

3.3.2.0 http://www.aerospike.com/docs/client/php/

The Aerospike PHP client as a C-extension for PHP

  Sources   Download

Apache-2.0

The Requires

  • php ~5.3

 

database extension aerospike

27/11 2014

3.3.1

3.3.1.0 http://www.aerospike.com/docs/client/php/

The Aerospike PHP client as a C-extension for PHP

  Sources   Download

Apache-2.0

The Requires

  • php ~5.3

 

database extension aerospike

01/11 2014

3.3.0

3.3.0.0 http://www.aerospike.com/docs/client/php/

The Aerospike PHP client as a C-extension for PHP

  Sources   Download

Apache-2.0

The Requires

  • php ~5.3

 

database extension aerospike

24/10 2014

3.2.1

3.2.1.0 http://www.aerospike.com/docs/client/php/

The Aerospike PHP client as a C-extension for PHP

  Sources   Download

Apache-2.0

The Requires

  • php ~5.3

 

database extension aerospike

22/10 2014

3.2.0

3.2.0.0 http://www.aerospike.com/docs/client/php/

The Aerospike PHP client as a C-extension for PHP

  Sources   Download

Apache-2.0

The Requires

  • php ~5.3

 

database extension aerospike

08/10 2014

3.1.1

3.1.1.0 http://www.aerospike.com/docs/client/php/

The Aerospike PHP client as a C-extension for PHP

  Sources   Download

Apache-2.0

The Requires

  • php >=5.3

 

database extension aerospike

07/10 2014

3.1.0

3.1.0.0 http://www.aerospike.com/docs/client/php/

The Aerospike PHP client as a C-extension for PHP

  Sources   Download

Apache-2.0

The Requires

  • php >=5.3

 

database extension aerospike