billpocket/php-emv

A collection of EMV tools and utilities for PHP 5.3+ (fork of Massimo Lombardo's project)

dev-master 2018-07-26 17:04 UTC

This package is not auto-updated.

Last update: 2025-06-29 08:51:32 UTC


README

A collection of EMV tools and utilities for PHP 5.3+

This is a fork of Massimo Lombardo's project

Installation

The recommended way to install PHP EMV is through Composer:

{
    "require": {
        "billpocket/php-emv": "@stable"
    }
}
$ composer install

Basic Usage

For parse from string (codec by HEX):

{
    use \EMV\Codec;
    
    $codecObj = new Codec();
    
    $codecObj->unserialize($hexTLV); //this returns an array
    
}

Testing

PHP EMV comes with a full-fledged test suite. To run it, install PHPUnit via Composer:

$ composer install --dev
$ php vendor/bin/phpunit

Contributing

Here are a few basic rules so that nobody gets grumpy:

Credits

License

PHP EMV is released under the MIT license. See the bundled LICENSE file for details.