dukim / php-emv
A collection of EMV tools and utilities for PHP 5.3+ (fork of Massimo Lombardo's project)
Installs: 9 353
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 20
pkg:composer/dukim/php-emv
Requires
- php: >=5.3.0
- ext-ctype: *
Requires (Dev)
- phpunit/phpunit: 4.0.*
This package is auto-updated.
Last update: 2025-12-17 01:28:46 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:
- every pull request MUST follow the basic coding standars, the coding style guide and, where applicable, the improved autoloding recommendations by the PHP-FIG.
- the unit tests MUST be written or updated
- the test suite MUST succeed entirely
- the documentation MUST be written or updated
- commit messages MUST make sense
- the pull request branch MUST be rebased against the latest
masterbranch - useless commits MUST be squashed
Credits
- Massimo Lombardo, original author
- Open source community
License
PHP EMV is released under the MIT license. See the bundled LICENSE file for details.