Skip to content

php binding to invoke kitinerary-extractor via Flatpak

License

Notifications You must be signed in to change notification settings

nextcloud-libraries/kitinerary-flatpak

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

kitinerary-flatpak

REUSE status

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 nextcloud/kitinerary nextcloud/kitinerary-flatpak

Usage

use Nextcloud\KItinerary\ItineraryExtractor;
use Nextcloud\KItinerary\Flatpak\FlatpakAdapter;
use Nextcloud\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

About

php binding to invoke kitinerary-extractor via Flatpak

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • PHP 100.0%