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
Requires
- php: >=5.3.0
- ext-ctype: *
Requires (Dev)
- phpunit/phpunit: 4.0.*
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:
- 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
master
branch - 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.