Home

Awesome

<!-- - SPDX-FileCopyrightText: 2020 Nextcloud GmbH and Nextcloud contributors - SPDX-License-Identifier: AGPL-3.0-or-later -->

kitinerary

REUSE status

KDE itinerary extractor for php. This package does not provide the bindings to the C++ applications. Use the binary adapter and Flatpak adapter in combination with this package.

Installation

composer require nextcloud/kitinerary

Usage

use Nextcloud\KItinerary\ItineraryExtractor;
use Nextcloud\KItinerary\Exception\KItineraryRuntimeException;

$extractor = new ItineraryExtractor(/* adapter instance */);

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