PHP Steem Tools - An Open Source Library For The Steem BlockchainsteemCreated with Sketch.

in #utopian-io7 years ago (edited)

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

Sort:  

Hey @dragosroua I am @utopian-io. I have just super-voted you at 64% Power!

Achievements

-I am a bot...I love developers... <3
-You are having more votes than average for this category. Nice!
-This is your first accepted contribution here in Utopian. Welcome!
Up-vote this comment to grow my power and help Open Source contributions like this one.

Very cool. Will this allows others to help add and upgrade the information on steem.supply? (or is that what you're hoping for by doing this?)

The library is agnostic, it can be used for anything PHP, not necessarily Steem.Supply (which has a more complex setup, it's built on top of a framework called Code Igniter).

My hope is that more people will start building projects for the Steem blockchain with PHP. The vast majority of projects are now JS (node or browser) and Python.

Hi @dragosroua! As a dev, I'm very excited to read about your SteemTools! I do believe you should give some more details about the features and work to come, it should give you a better visibility and also better upvote from the Utopian bot ;) Hit me up when it's done and I'll accept your post.

It has already a bunch of features, like querying for authors posts / comments / JSON metadata, querying CMC for Steem / SBD price, etc. The next step is to add some examples to the package.

LE: if you want to see it inaction, have a look at steem.supply, it's quite a popular app, with an average of 300-500 unique users per day. Frontend uses Gcharts, but all the backend is a combination of Code Igniter and PHP Steem Tools (packed as modules inside CI).

@dragosroua the Utopian Bot votes on the averages. I always write too much for the coding section so your post will get a lower vote. I am changing this for the code category but still if you want to add more details, they are welcome.

I added a more detailed description, hope it's ok now. Thanks for the tips, appreciated :)

@dragosroua amazing! Thank you

Can you please detail all that on your post? Maybe add some examples. You'll get a higher upvote, and given your work, you deserve it!

Your Steem Tools link is invalid.

Ups, thanks!

i am a noob in php

Great sounding library. Question for you. Can I use this library to execute the actions of follow/unfollow and not just retrieve my follower information?

Thanks for sharing this :)

What about posting on steemit via API? Is that more complicated? Yep, total noob here..

Coin Marketplace

STEEM 0.18
TRX 0.13
JST 0.029
BTC 58981.94
ETH 3097.70
USDT 1.00
SBD 2.38