j4nr6n / adif
Read and Write ADIF formatted strings/files
v3.0.0
2024-01-19 07:58 UTC
Requires
- php: ^8.2
Requires (Dev)
- phpunit/phpunit: ^9.5
- roave/security-advisories: dev-latest
- squizlabs/php_codesniffer: ^3.7
- symfony/var-dumper: ^6.2
- vimeo/psalm: ^5.9
README
Make sure Composer is installed globally, as explained in the installation chapter of the Composer documentation.
Then run
$ composer require j4nr6n/adif
Read
use j4nr6n/ADIF/Parser; $data = (new Parser())->parse($adifEncodedData);
Write
use j4nr6n/ADIF/Writer; $data = [ // ... ]; $adifEncodedData = (new Writer())->write($data); // (new Writer('MyApp', '1.0'))->write($data);