1. Go to this page and download the library: Download kaperys/financial 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/ */
kaperys / financial example snippets
$cacheManager = new CacheManager();
$cacheManager->generateSchemaCache(new ISO8583());
/** @var ISO8583 $schemaManager */
$schemaManager = new SchemaManager(new ISO8583(), $cacheManager);
$schemaManager->setCurrencyCodeCardholderBilling('GBP');
$schemaManager->setPrivateReserved6('Your topup was successful');
/** @var MessagePacker $message */
$message = (new Financial($cacheManager))->pack($schemaManager);
$message->setHeaderLength(2);
$message->setMti('0200');
echo $message->generate();