2017 © Pedro Peláez
 

library financial

A simple PHP ISO8583 pack and unpack library

image

kaperys/financial

A simple PHP ISO8583 pack and unpack library

  • Friday, November 3, 2017
  • by kaperys
  • Repository
  • 1 Watchers
  • 3 Stars
  • 905 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 2 Forks
  • 1 Open issues
  • 6 Versions
  • 24 % Grown

The README.md

kaperys/financial

A simple PHP ISO8583 pack and unpack library, (*1)

Build Status Coverage Status License: MIT, (*2)


DEPRECATED. I'll no longer be maintaining this repository. If you're interested in becoming a maintainer, please contact me., (*3)


Basic Usage

Packing the message, (*4)

$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();

Unpacking the message, (*5)

$cacheManager = new CacheManager();
$cacheManager->generateSchemaCache(new ISO8583());

/** @var ISO8583 $schemaManager */
$schemaManager = new SchemaManager(new ISO8583(), $cacheManager);

/** @var MessageUnpacker $message */
$message = (new Financial($cacheManager))->unpack($schemaManager);

$message->setHeaderLength(2);
$parsedMessage = $message->parse("012430323030f23e4491a8e08020000000000000002031362a2a2a2a2a2a2a2a2a2a2a2a2a2a2a2a303030303030303030303030303031303030313231323134353430383030303030393134353430383132313231373033313231333030303039303230304330303030303030303036303030303230303630303030323033372a2a2a2a2a2a2a2a2a2a2a2a2a2a2a2a2a2a2a2a2a2a2a2a2a2a2a2a2a2a2a2a2a2a2a2a2a504652333437303030303039323837353937353830303030303030303030333039333733303134373430342054657374204167656e74203220204861746669656c64202020202048654742383236303238303030303030323136317c303030307c504652333437303030303039303135353630313031323634303243313031");

/** @var ISO8583 $schema */
$schema = $parsedMessage->getParsedSchema();

echo $parsedMessage->getMti();
echo $schema->getCardAcceptorNameLocation();

Installation

Install the latest version with Composer:, (*6)

composer require kaperys/financial

About

kaperys/financial is a simple PHP ISO8583 message pack/unpack library, capable of supporting multiple message schemas and versions., (*7)

Requirements

  • PHP v7.0+

Documentation

Issues

Please use the GitHub issue tracker to report bugs., (*8)

Contributing

Please use the HubFlow branching strategy to contribute work, using the GitHub issue tracker ID as your branch key. For example, feature/1_ComposerSupport., (*9)

If you would like to contribute to core (non-issue) work, please grep the codebase for @todo., (*10)

Author

Mike Kaperys - mike@kaperys.io - https://kaperys.io, (*11)

License

kaperys/financial is licensed under the MIT License - see the LICENSE file for details, (*12)

Change Log

See changelog.md, (*13)

Roadmap

See roadmap.md, (*14)

The Versions

03/11 2017

dev-master

9999999-dev

A simple PHP ISO8583 pack and unpack library

  Sources   Download

MIT

The Requires

 

The Development Requires

by Mike Kaperys

03/11 2017

v0.2

0.2.0.0

A simple PHP ISO8583 pack and unpack library

  Sources   Download

MIT

The Requires

 

The Development Requires

by Mike Kaperys

03/11 2017

dev-develop

dev-develop

A simple PHP ISO8583 pack and unpack library

  Sources   Download

MIT

The Requires

 

The Development Requires

by Mike Kaperys

17/05 2017

v0.1.1

0.1.1.0

A simple PHP ISO8583 pack and unpack library

  Sources   Download

MIT

The Requires

 

The Development Requires

by Mike Kaperys

17/03 2017

v0.1-alpha

0.1.0.0-alpha

A simple PHP ISO8583 pack and unpack library

  Sources   Download

MIT

The Requires

 

The Development Requires

by Mike Kaperys

17/03 2017

dev-coverage-and-quality

dev-coverage-and-quality

A simple PHP ISO8583 pack and unpack library

  Sources   Download

MIT

The Requires

 

The Development Requires

by Mike Kaperys