Download the PHP package sagleft/mfcoin-php without Composer
On this page you can find all versions of the php package sagleft/mfcoin-php. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package mfcoin-php
mfcoin-php
To the horror, a simple library for sending requests to the MFCoin node via JSON RPC in terrible and outdated PHP (you need more jokes about PHP, write me, add to readme)
Have fun
-
How to install
-
Initialize MFCoin connection/object:
Optionally, you can specify a host, port. Default is HTTP on localhost port 22824.
If you wish to make an SSL connection you can set an optional CA certificate or leave blank `
-
Make calls to mfcoind as methods for your object. Examples:
- You can look at other methods in the MFCoin wallet by typing the "help" command or use:
Additional Info
-
When a call fails for any reason, it will return false and put the error message in
$mfcoin->error
-
The HTTP status code can be found in $mfcoin->status and will either be a valid HTTP status code or will be 0 if cURL was unable to connect.
- The full response (not usually needed) is stored in
$mfcoin->response
while the raw JSON is stored in$mfcoin->raw_response