adshares / ads-client
PHP client for the ADS blockchain
Requires
- php: ^7.4|^8.0
- ext-json: *
- psr/log: ^1.0|^2.0|^3.0
- symfony/process: ^4.0|^5.0|^6.0
Requires (Dev)
This package is auto-updated.
Last update: 2025-03-13 15:31:48 UTC
README
ADS PHP Client
Report bug · Request feature · Docs
ADS PHP Client is an object-oriented PHP 7.4/8.0 client for the ADS blockchain API.
This library depends on Symfony Process.
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
- Paweł Podkalicki - main programmer
- Maciej Pilarczyk - architecture, supervision
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.