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.0.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. Firstly, we have a robust PHP client written in Rust and a connection manager written in Go, serving as a shared resource among PHP processes. The connection manager daemon efficiently handles all requests and responses between the PHP processes and the Aerospike server.

Requirements

Setup

Setting up the Aerospike client connection manager:

Installing up the dependencies and Running the Aerospike Connection manager

  1. Make sure the go toolchain has been installed. Download the package from The Go Programming Language. Follow the steps to correctly install Go. NOTE: Ensure that the PATH variable has been updated with the GOBIN path.
  2. Install protobuf compiler:

  3. Change directory into php-client/aerospike-connection-manager

  4. Build and run 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.

Build and Install the PHP-Client

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

Running your PHP Project

  1. Running your PHP script:

    • Before running your script pre-requisites are Aerospike connection manager and Aerospike Server must be running.
    • Once the build is successful and all the pre-requisites are met, import the Aerospike namespace to your PHP script.
    • To connect to the Aerospike connection manager add:

    • Run the php script If there are no Errors then you have successfully connected to the Aerospike DB.

NOTE: If the connection manager daemon crashes, you will have to manually remove the file /tmp/asld_grpc.sock from its path.

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 ....