Download the PHP package kompendium-llc/factom-php-client without Composer
On this page you can find all versions of the php package kompendium-llc/factom-php-client. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download kompendium-llc/factom-php-client
More information about kompendium-llc/factom-php-client
Files in kompendium-llc/factom-php-client
Package factom-php-client
Short Description client library to access Factom blockchain
License MIT
Homepage https://github.com/kompendium-llc/factom-php-client
Informations about the package factom-php-client
PHP JSON-RPC client for Factom API
A JSON-RPC Php client for the Factom protocol. Each response has unique type that automatically converted from JSON response and suitable for further usage in business logic. All responses are available in Response directory along with convinient converters.
Installation
Composer:
Git:
Config
You can change default node url or ports
Add this lines after this -
require_once __DIR__ . '/../vendor/autoload.php';
// Set Custom host of node
define('walletHost', 'https://dev.factomd.net/v2');
define('host', 'https://dev.factomd.net/v2');
define('debugHost', 'http://localhost:8088/debug');
Usage
Retreiving a balance
Reading Entry Data
Writing an Entry
Note: Ensure data in the entry fields is hex-encoded. This includes the content section.
Block Height and Current Minute
Sending A Transaction
Testing
Additionally, tests are executed by Travis CI with config pointing at Factom's Open Node (https://factomd.net).
Examples
Found in the examples folder
Support
Additional support for the Factom Protocol or library usage can be found on discord
Development
To contribute to the factom-php-client
library, clone the repository, create a feature branch and submit a PRfor review.
Learn
- Accessing the Factom blockchain from different programming languages
- Building simple blockchain game with Factom
Contributions
The Library developed by Kompendium, LLC in partnership with Kelecorix, Inc and Sergey Bushnyak for the good of the Factom community. While we see the usage of the libraries over the months, the Factom community decided not to support this work in the form of a grant either upfront or as backpay on multiple occasions (1, 2, 3)
If you're an active user or find it useful we strongly encourage you to support our efforts and ensure long maintenance by contributing a small donation to one of the following cryptocurrency addresses:
BTC: 39oVXpsgsyW8ZgzsnX3sV7HLdtXWfT96qN
ETH: 0x9cDBA6bb44772259B3A3fb89cf233A147a720f34
FCT: FA38cwer93mmPw1HxjScLmK1yF9iJTu5P87T2vdkbuLovm2YXyss