Skip to content

blazeapps007/phpSteem

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

40 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

phpSteem

A PHP library for interacting with the Steem blockchain.

Installation (via Composer)

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"
  }
}

Usage

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

Development

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

License

This project is licensed under the MIT license.

About

PHP Library for the Steem blockchain RPC

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • PHP 100.0%