A PHP library for interacting with the Steem blockchain.
From within your project root, run:
composer require blazeapps007/phpsteem
or modify your composer.json
to include:
{
"name": "blazeapps007/phpsteem",
"minimum-stability": "dev",
"require": {
"blazeapps007/phpsteem": "dev-master"
}
}
use BlazeApps\phpSteem\RPC;
// Connect to the main steem network
$steem = new RPC();
// Get an account
$account = $steem->get_account('steemit');
// Get the account's name
echo $account->name;
// Get the vesting shares for the account as a float
echo $account->vesting_shares->amount;
// Get the account's creation date as a DateTime object
echo $account->created->format('Y-m-d H:i:s');
To contribute, clone the repository and install the developer dependencies.
git clone https://github.com/blazeapps007/phpSteem.git
cd phpSteem
composer install --dev
Run the test suite using phpunit
:
./vendor/bin/phpunit
If you're on OSX and have entr
installed (brew install entr
), you can run the following command for live testing as you develop:
find src/ tests/ | entr -c phpunit
This project is licensed under the MIT license.