Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/christophwurst/kitinerary-flatpak
php binding to invoke kitinerary-extractor via Flatpak
https://github.com/christophwurst/kitinerary-flatpak
Last synced: 2 months ago
JSON representation
php binding to invoke kitinerary-extractor via Flatpak
- Host: GitHub
- URL: https://github.com/christophwurst/kitinerary-flatpak
- Owner: ChristophWurst
- License: agpl-3.0
- Created: 2019-11-18T10:54:46.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2023-05-29T13:26:01.000Z (over 1 year ago)
- Last Synced: 2024-08-09T18:54:52.782Z (5 months ago)
- Language: PHP
- Size: 30.3 KB
- Stars: 1
- Watchers: 4
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# kitinerary-flatpak
Flatpak adapter for the [kitinerary extractor package](https://packagist.org/packages/christophwurst/kitinerary). This package provides an adapter that invokes [kitinerary-extractor](https://github.com/KDE/itinerary) via Flatpak.
## Installation
See [the KDE itinerary wiki for the Flatpak](https://community.kde.org/KDE_PIM/KDE_Itinerary#Plasma_Mobile.2C_Flatpak) installation instructions.
```sh
composer require christophwurst/kitinerary christophwurst/kitinerary-flatpak
```## Usage
```php
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
```