j4nr6n/adif

Read and Write ADIF formatted strings/files

v3.0.0 2024-01-19 07:58 UTC

This package is auto-updated.

Last update: 2024-12-03 04:57:32 UTC


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);