PHPackages                             kaperys/financial - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Parsing &amp; Serialization](/categories/parsing)
4. /
5. kaperys/financial

AbandonedArchivedLibrary[Parsing &amp; Serialization](/categories/parsing)

kaperys/financial
=================

A simple PHP ISO8583 pack and unpack library

v0.2(8y ago)91.3k9MITPHPPHP ~7.0

Since Mar 17Pushed 7y ago1 watchersCompare

[ Source](https://github.com/kaperys/financial)[ Packagist](https://packagist.org/packages/kaperys/financial)[ RSS](/packages/kaperys-financial/feed)WikiDiscussions master Synced yesterday

READMEChangelog (3)Dependencies (5)Versions (5)Used By (0)

kaperys/financial
=================

[](#kaperysfinancial)

A simple PHP ISO8583 pack and unpack library

[![Build Status](https://camo.githubusercontent.com/91dde97c3ffdb1970d4f77d1e10bef70ac5cbef7e2d336f4aae568ca6df58002/68747470733a2f2f7472617669732d63692e6f72672f6b6170657279732f66696e616e6369616c2e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/kaperys/financial)[![Coverage Status](https://camo.githubusercontent.com/34165e3e3b1145b5e56e115c16f69cec68a7794a9aa41ce8a2bef16242c255d1/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f6769746875622f6b6170657279732f66696e616e6369616c2f62616467652e7376673f6272616e63683d6d6173746572)](https://coveralls.io/github/kaperys/financial?branch=master)[![License: MIT](https://camo.githubusercontent.com/fdf2982b9f5d7489dcf44570e714e3a15fce6253e0cc6b5aa61a075aac2ff71b/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4c6963656e73652d4d49542d79656c6c6f772e737667)](https://opensource.org/licenses/MIT)

---

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

---

Basic Usage
-----------

[](#basic-usage)

Packing the message

```
$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

```
$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
------------

[](#installation)

Install the latest version with Composer:

```
composer require kaperys/financial
```

About
-----

[](#about)

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

### Requirements

[](#requirements)

- PHP v7.0+

### Documentation

[](#documentation)

- [Introduction and Concepts](doc/00-introduction-and-concepts.md)
- [Usage](doc/01-usage.md)
- [Caching](doc/02-caching.md)
- [Schemas](doc/03-schemas.md)
- [Development](doc/04-development.md)

### Issues

[](#issues)

Please use the [GitHub](https://github.com/kaperys/financial/issues) issue tracker to report bugs.

### Contributing

[](#contributing)

Please use the [HubFlow](https://datasift.github.io/gitflow/) branching strategy to contribute work, using the GitHub issue tracker ID as your branch key. For example, feature/1\_ComposerSupport.

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

### Author

[](#author)

Mike Kaperys -  -

### License

[](#license)

kaperys/financial is licensed under the MIT License - see the `LICENSE` file for details

Change Log
----------

[](#change-log)

See [changelog.md](changelog.md)

Roadmap
-------

[](#roadmap)

See [roadmap.md](roadmap.md)

###  Health Score

29

—

LowBetter than 57% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity24

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity51

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 83.3% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~115 days

Total

3

Last Release

3162d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/7786586?v=4)[Mike Kaperys](/maintainers/kaperys)[@kaperys](https://github.com/kaperys)

---

Top Contributors

[![kaperys](https://avatars.githubusercontent.com/u/7786586?v=4)](https://github.com/kaperys "kaperys (5 commits)")[![barnabaskecskes](https://avatars.githubusercontent.com/u/3535449?v=4)](https://github.com/barnabaskecskes "barnabaskecskes (1 commits)")

---

Tags

financeiso8583payment-processingphp

###  Code Quality

TestsPHPUnit

Code StylePHP\_CodeSniffer

### Embed Badge

![Health badge](/badges/kaperys-financial/health.svg)

```
[![Health](https://phpackages.com/badges/kaperys-financial/health.svg)](https://phpackages.com/packages/kaperys-financial)
```

###  Alternatives

[mck89/peast

Peast is PHP library that generates AST for JavaScript code

19037.7M42](/packages/mck89-peast)[sauladam/shipment-tracker

Parses tracking information for several carriers, like UPS, USPS, DHL and GLS by simply scraping the data. No need for any kind of API access.

9642.0k](/packages/sauladam-shipment-tracker)[moonshine/layouts-field

Field for repeating groups of fields for MoonShine

107.9k](/packages/moonshine-layouts-field)[tcds-io/php-jackson

A lightweight, flexible object serializer for PHP, inspired by FasterXML/jackson

112.9k10](/packages/tcds-io-php-jackson)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
