gridgain / client
PHP Client for GridGain Community Edition
Installs: 9 160
Dependents: 1
Suggesters: 0
Security: 0
Stars: 2
Watchers: 73
Forks: 1
Open Issues: 0
Requires
- php: >=7.2.0
- ext-mbstring: *
- brick/math: ^0.7
- php-ds/php-ds: ^1.2
Requires (Dev)
- phpunit/phpunit: ^7.3.1
This package is not auto-updated.
Last update: 2024-11-03 13:56:03 UTC
README
Installation
The client requires PHP version 7.2 or higher (http://php.net/manual/en/install.php) and Composer Dependency Manager (https://getcomposer.org/download/).
The client additionally requires PHP Multibyte String extension. Depending on you PHP configuration you may need to additionally install/configure it (http://php.net/manual/en/mbstring.installation.php)
Installation from the PHP Package Repository
This is a recommended way for users. Run from your application root
composer require gridgain/gridgain-client
To use the client in your application, include vendor/autoload.php
file, generated by Composer, to your source code, eg.
require_once __DIR__ . '/vendor/autoload.php';
Installation from Sources
This way is more suitable for developers or if you install client from zip archive.
- Download and/or unpack GridGain PHP client sources to
gridgain_client_path
- Go to
gridgain_client_path
folder - Execute
composer install --no-dev
command
cd gridgain_client_path
composer install --no-dev
To use the client in your application, include vendor/autoload.php
file, generated by Composer, to your source code, eg.
require_once "<gridgain_client_path>/vendor/autoload.php";
Updating to newer version
To update version of client used in your project, just update version in your "require" section of composer.json and run the following command:
composer update gridgain/gridgain-client
Full Examples
PHP Thin Client contains examples to demonstrate the main behavior of the client.
Examples Installation
Examples are installed during installation of the whole GridGain client from sources.
Examples Setup and Running
-
Run GridGain server - locally or remotely - if not run yet.
-
If needed, modify
ENDPOINT
constant in an example source file - GridGain node endpoint. The default value is127.0.0.1:10800
. -
Run an example by calling
php <example_file_name>.php
, eg:
cd gridgain_client_path/examples
php CachePutGetExample.php
Refer to Examples ReadMe for detailed descriptions of examples.
For more information, see GridGain PHP Thin Client documentation.