PHP Steem Tools - An Open Source Library For The Steem Blockchain

Words
158
Reading
1 min
9y
Listen to this post
~1 min

PHP is still a widely used programming language. It powers WordPress, which, in turns, powers hundreds of millions of websites.

I decided to open source parts of the code I used when I created steem.supply, namely the formalizable parts, in an Open Source library called PHP Steem Tools.

PHP Steem Tools wants to be a wrapper on top of a few APIs, including, but not limited to the Steem blockchain API.

Currently, it is packaged as a composer module and it has the following features:

  • alternative transport: cURL / websocket
  • get user JSON data
  • get current prices for Steem / SBD from coinmarketcap.com
  • converts vests to Steem Power
  • access the following endpoints:
    -- get_discussions_by_author_before_date,
    -- get_replies_by_last_update,
    -- get_current_median_history_price
    -- get_content
    -- get_content_replies
    -- get_discussions_by_comments
    -- get_account_votes
    -- get_account_history
    -- get_followers
    -- lookup_accounts
    -- get_accounts
    -- get_api_by_name
    -- get_dynamic_global_properties

In Steem.Supply this library is used as modules in a CodeIgniter setup. Steem Supply screenshots


Screen Shot 2017-10-24 at 10.42.41 PM.png


Screen Shot 2017-10-24 at 10.42.45 PM.png


Screen Shot 2017-10-24 at 10.42.48 PM.png


Open Source Contribution posted via https://utopian.io

PHP Steem Tools - An Open Source Library For The Steem Blockchain | Ecency