guszandy/cabrillo_decoder

There is no license information available for the latest version (v0.1.0) of this package.

Decode Cabrillo file to array PHP.

v0.1.0 2022-11-16 10:50 UTC

This package is auto-updated.

Last update: 2024-04-16 14:12:57 UTC


README

Decode File Cabrillo to array PHP. Cabrillo decoder for python in here and for javascript in here here.

Installation

To install this package, you have to write like this:

composer require guszandy/cabrillo-decoder

Add an example file

Make sure that you have created a PHP-extension file and example cabrillo file (in this example folder) for this example and write like this:

<?php
require_once 'vendor/autoload.php';

$QSO_data_head = [
    "Freq",
    "Mode",
    "Date",
    "Time",
    "MyCall",
    "RSTSent",
    "SerialSent",
    "Call",
    "RSTReceived",
    "SerialReceived"
];

$file = fopen("example-cab.cab", "r");

$cd = new \Guszandy\CabrilloDecoder\CabrilloDecoder($file, $QSO_data_head);

$decoded_data = $cd->decode();

print("<pre>".print_r($decoded_data,true)."</pre>");