PHP code example of abeltranp9476 / cliente-blockchain
1. Go to this page and download the library: Download abeltranp9476/cliente-blockchain library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
abeltranp9476 / cliente-blockchain example snippets
$data= [
'security_word' => '', /* Palabra de seguridad */
'address' => '', /* Direccion (clave publica) de la wallet */
'amount' => '', /* Monto de la transaccion en la cripto correspondiente a la direccion */
'invoice_id' => '' /* Identificador de su orden */
];
use Cripto\cBlockChain;
$cBlockChain= new cBlockChain('abcdefghijklmnopqrstuvwxyz'); /* Se le pasa el token al constructor de la clase */
$cBlockChain->create_invoice([
'securityWord' => 'clavedeseguridad',
'address' => $address,
'amount' => $price,
'invoice_id' => $idInvoice
]);
$data= [
'description' => '', /* Descripcion de la factura*/
'pub' => '', /* MasterKey de la criptomoneda en su wallet */
'cripto' => '', /* Identificador de la criptomoneda */
'security_word' => '', /* Palabra de seguridad */
'amount' => '', /* Monto en USD */
'invoice_id' => '', /* Identificador de su orden */
];
use Cripto\cBlockChain;
$cBlockChain= new cBlockChain('abcdefghijklmnopqrstuvwxyz'); /* Se le pasa el token al constructor de la clase */
$cBlockChain->create_invoice([
'description' => '',
'pub' => '',
'security_word' => '',
'amount' => '',
'invoice_id' => '',
]);
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.