Download the PHP package aerospike/aerospike-php without Composer

On this page you can find all versions of the php package aerospike/aerospike-php. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package aerospike-php

PHP version

Aerospike PHP 8 Client (v1.2.0)

An Aerospike client library for PHP 8

PHP-Client Introduction

This is the documentation for the Aerospike PHP-Client. The PHP-Client comprises of two essential components:

Dependencies

NOTE: Any missing dependencies will be installed by the installation script

Build & Installation

There are 2 ways to build and install the PHP-Client:

  1. direct script download and execution (also clones the repo for you)
  2. manually clone the repo first and then run script from there

The install script builds both the PHP-Client and the ACM, as well as installing all of the dependencies.

Automatic Method: Direct download and execution of installation script:

The installation script will clone the repo into a subfolder so execute this command directly above where you want the repo to go

For MacOS (Darwin):

NOTE: the default MacOS installation is an all user-local installation, requiring no root or sudo access

For Linux:

Manual method: repo clone followed by execution of the installation script:

  1. Clone the repo
  2. Run the installation script for your system:

    for MacOS (darwin):

    or for linux:

NOTE: the default linux installation contains system-wide installations and will require root / sudo access

After the installation script completes, re-source your shell env config files to make sure your PATH is updated. Eg, on MacOS:

If you encounter errors during installation, you can try running the install script again as the install scripts attempt to be idempotent. As a last resort, the script commands can be run manually one-by-one as needed.

Configuring the Aerospike Connection Manager:

NOTE: Please view the README.md in the php-client/aerospike-connection-manager directory for more information about the setting up the aerospike-connection-manager and configuring the client policy.

NOTE: You should have an Aerospike server up and running to test against.

Manual Build and Install of the PHP-Client (optional)

In case the installation script fails to build the PHP-Client, or if you just want to run specific build commands, you may do so manually:

NOTE: The Aerospike server must be running for the tests to run successfully.

Running your PHP Project

Documentation

Issues

If there are any bugs, feature requests or feedback -> please create an issue on GitHub. Issues will be regularly reviewed by the Aerospike Client Engineering Team.

Usage

The following is a very simple example of CRUD operations in an Aerospike database.

Batch Operations Examples:

For more detailed examples you can see the examples direcotry php-client/examples


All versions of aerospike-php with dependencies

PHP Build Version
Package Version
Requires php Version >=8.1
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package aerospike/aerospike-php contains the following files

Loading the files please wait ....