Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/kesar/eos-php
PHP Wrapper for EOS API
https://github.com/kesar/eos-php
blockchain eos eosio php
Last synced: 3 months ago
JSON representation
PHP Wrapper for EOS API
- Host: GitHub
- URL: https://github.com/kesar/eos-php
- Owner: kesar
- Created: 2018-05-08T09:08:10.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2020-06-11T08:28:06.000Z (over 4 years ago)
- Last Synced: 2024-07-06T06:01:57.156Z (4 months ago)
- Topics: blockchain, eos, eosio, php
- Language: PHP
- Size: 9.77 KB
- Stars: 37
- Watchers: 5
- Forks: 20
- Open Issues: 6
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# EOS RPC Client in PHP
### Install:
```bash
composer require kesar/eos-php:dev-master
```### Examples:
```php
use EOSPHP\EOSClient;
include 'vendor/autoload.php';
$client = new EOSClient('http://127.0.0.1:8888');
$info = $client->chain()->getInfo();
$block = $client->chain()->getBlock(2);
$account = $client->chain()->getAccount('eosio');
$code = $client->chain()->getCode('eosio');
$stats = $client->chain()->getCurrencyStats('eosio.token', 'EOS');
$balance = $client->chain()->getCurrencyBalance('eosio.token', 'eosio.token', 'EOS');
$transaction = $client->history()->getTransaction('29716ecdd6a8555fab509321faabfb5d06e0bf25db678347c360e7f85159ca38');
$actions = $client->history()->getActions('eosio.token');print_r($actions);
```