Skip to content

rossaffandy/blockstrap-php

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Blockstrap PHP SDK

The long-term plan for all of our SDKs is to recreate the full-functionality of our HTML5 Framework.

For now, the following PHP modules exist:

  • blockstrap (core)
  • api (requires blockstrap and cache)
  • blockauth (authentication via blockchains)
  • cache (uses simple session storage)
  • dnkey (support for DNKey and BlockAuth

Blockstrap Core

Blockstrap core currently provides the following public functions:

  • debug (prettier object prints)
  • get_var (better $_POST / $_GET functionality)

API Module

The API module currently provides the following public functions:

  • address (mapped to address/transactions)
  • block (mapped to block)
  • blocks (mapped to block/latest)
  • decode (mapped to transaction/decode)
  • dnkey (mapped to transaction/decode)
  • height (mapped to block/height)
  • market (mapped to market/stats)
  • relay (mapped to transaction/relay)
  • transaction (mapped to transaction/id)

The Cache Module is required for all external API calls.

BlockAuth Module

The BlockAuth module currently provides the following public functions:

  • check (checks the supplied transaction to verify the supplied password)
  • login (basic wrapper to first collect DNKey info if supplied before checking credentials)

The API Module is required for the check function to work.

The DNKey Module s required for the login function to work.

Cache Module

The cache module currently provides the following public functions:

  • read (read from session storage)
  • write (write to session storage)

DNKey Module

The DNKey module currently provides the following public functions:

  • api (used if accessed via api module)
  • get (used if from standalone include)

For more information, please visit - docs.blockstrap.com

About

PHP SDK for Blockstrap Framework & API

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • PHP 96.5%
  • CSS 3.5%