adshares/ads-client

PHP client for the ADS blockchain

v1.2.0 2018-10-17 08:46 UTC

This package is not auto-updated.

Last update: 2021-01-20 23:58:39 UTC


README

Adshares

ADS PHP Client

Report bug · Request feature · Wiki


ADS PHP Client is an object oriented PHP 7.2 client for the ADS blockchain API.

This library depends on Symfony Process.

Quality Status Reliability Rating Security Rating Coverage Build Status

Getting Started

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();

Documentation

Contributing

Please follow our Contributing Guidelines

Versioning

We use SemVer for versioning. For the versions available, see the tags on this repository.

Authors

See also the list of contributors who participated in this project.

License

This project is licensed under the GNU General Public License v3.0 - see the LICENSE file for details.

More info