christophwurst/kitinerary-flatpak

KItinerary Flatpak binding

v0.3.1 2023-05-22 12:34 UTC

This package is auto-updated.

Last update: 2024-11-29 16:52:37 UTC


README

Flatpak adapter for the kitinerary extractor package. This package provides an adapter that invokes kitinerary-extractor via Flatpak.

Installation

See the KDE itinerary wiki for the Flatpak installation instructions.

composer require christophwurst/kitinerary christophwurst/kitinerary-flatpak

Usage

use ChristophWurst\KItinerary\ItineraryExtractor;
use ChristophWurst\KItinerary\Flatpak\FlatpakAdapter;
use ChristophWurst\KItinerary\Exception\KItineraryRuntimeException;

$adapter = new FlatpakAdapter();
if (!$adapter->isAvailable()) {
    // ...
}
$extractor = new Extractor($adapter);

try {
    $itinerary = $extractor->extractFromString('...');
} catch (KItineraryRuntimeException $e) {
    // ...
}

Installation of kitinerary-extractor flatpak

To install kitinerary-extractor from flatpak, you can use:

flatpak remote-add --if-not-exists kdeapps --from https://distribute.kde.org/kdeapps.flatpakrepo
flatpak install kdeapps org.kde.itinerary-extractor