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.

Maintainers

Package info

github.com/GusZandy/CabrilloDecoder

pkg:composer/guszandy/cabrillo_decoder

Statistics

Installs: 7

Dependents: 0

Suggesters: 0

Stars: 0

Open Issues: 0

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

This package is auto-updated.

Last update: 2026-02-16 18:30:23 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>");