PHP SDK
The PHP SDK currently supports the following modules:
- blockstrap (core class)
- api (requires 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)
- Related Articles
- Return to SDKs
- Ruby SDK
- Table of Contents