Download the PHP package manamine/php-eos-rpc-sdk without Composer
On this page you can find all versions of the php package manamine/php-eos-rpc-sdk. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download manamine/php-eos-rpc-sdk
More information about manamine/php-eos-rpc-sdk
Files in manamine/php-eos-rpc-sdk
Package php-eos-rpc-sdk
Short Description PHP SDK for the EOS RPC API
License MIT
Homepage https://github.com/alienzin/php-eos-rpc-sdk
Informations about the package php-eos-rpc-sdk
The PHP SDK for the EOS RPC API
A PHP wrapper for the EOS Chain/Wallet RPC API.
Background
You can check out the RPC API reference but beware that some of the newer methods are missing. Wallet RPC APIs are implemented as v1.1.0 of RPC API reference. Also, some of the examples in those docs use outdated syntax.
Installing
Configuration
Create a dotenv .env
file in the project root, with your favorite RPC API host and KEOSD. You can use
.env.example
as a template:
Usage
There is a shiny factory method to auto instantiate all dependencies:
Examples
To get you started, there is a simple example runner which covers all API commands.
Just run this via cli to see example output for all commands:
API Methods
Almost Chain/Wallet API methods are covered.
Chain APIs
Get Info
Get latest information related to a node
Get Block
Get information related to a block
Get Block Header State
Get information related to a block header state
Get Account
Get information related to an account
Get Code
Fetch smart contract code
Get Table Rows
Fetch smart contract data from an account
Get Currency Balance
Fetch currency balance(s) for an account
Get Currency Stats
Fetch stats for a currency
Get ABI
Get an account ABI
Get Raw Code and ABI
Get raw code and ABI
Get Producers
List the producers
ABI JSON To Bin
Serialize json to binary hex
ABI Bin To JSON
Serialize back binary hex to json
Get Required Keys
Get the required keys needed to sign a transaction
Push Transaction
Push a transaction
Push Transactions
Push transactions
Wallet APIs
Create
Creates a new wallet with the given name
Open
Opens an existing wallet of the given name
Lock
Locks an existing wallet of the given name
Lock All
Locks all existing wallets
Unlock
Unlocks a wallet with the given name and password
Import Key
Imports a private key to the wallet of the given name
Remove Key
Removes a key pair from the wallet of the given name
Create Key
Creates a key pair and import
List Wallets
Lists all wallets
List Keys
Lists all key pairs from the wallet of the given name and password
Get Public Keys
Lists all public keys across all wallets
Set Timeout
Sets wallet auto lock timeout (in seconds)
Sign Transaction
Signs a transaction
EOS Wrapper APIs
Prerequisites
Need to set wallet name and password
Push Transaction
Push a transaction
Make Transaction
Make a transaction (useful for pushTransactions)
Push Transactions
Push transactions
Push Action
Push an action
Transfer
Transfers token
Create Key Pair
Creates a key pair and returns
Tests
To run the test suites, simply execute:
If you wanna get fancy and check code coverage:
If you're really bored, you might wanna run some static analysis:
Contributing
All contributions are welcome! Just fire up a PR, make sure your code style is PSR-2 compliant:
License
Free for everyone!
MIT License
All versions of php-eos-rpc-sdk with dependencies
vlucas/phpdotenv Version ^2.4
php-curl-class/php-curl-class Version ^8.1