christophwurst / kitinerary-flatpak
KItinerary Flatpak binding
Installs: 228 953
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 4
Forks: 3
Open Issues: 0
Requires
- php: ^7.1 || ^8.0
- ext-json: *
- christophwurst/kitinerary: ^0.2.2
- psr/log: ^1.1|^2.0|^3.0
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