GusZandy / CabrilloDecoder

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

CabrilloDecoder

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

About


Languages

Language:PHP 100.0%