PHP client for the ADS blockchain
ADS PHP Client is an object oriented PHP 7.2 client for the ADS blockchain API.
This library depends on Symfony Process.
Several quick start options are available:
- Install with Composer (recommended):
composer require adshares/ads-client
- Download the latest release
- Clone the repo:
git clone https://github.com/adshares/ads-php-client.git
To connect to the node, you will need to provide an account address and a secret key. Usually you will also need to specify a host name and a port. Once you know the proper parameters, you should be able to connect like this:
$address = 'FFFF-00000001-AAAA'; $secret = 'EFD0380D9B29829AE9F30F41E85D6C09A97220E6CF76FE8C1B479A34A38D12EC'; $host = '127.0.0.1'; $port = 6511; $client = new AdsClient(new CliDriver($address, $secret, $host, $port));
Then you can call ADS commands, for example, to get the current status of the user:
$response = $client->getMe();
Please follow our Contributing Guidelines
See also the list of contributors who participated in this project.
This project is licensed under the GNU General Public License v3.0 - see the LICENSE file for details.