Skip to content

System executable adapter for the kitinerary extractor

License

Notifications You must be signed in to change notification settings

nextcloud-libraries/kitinerary-sys

 
 

Repository files navigation

kitinerary-sys

REUSE status

System executable adapter for the kitinerary extractor package. This package provides an adapter that invokes the binary installed on the system, e.g. with a Linux distribution's package manager.

Installation

composer require nextcloud/kitinerary nextcloud/kitinerary-sys

Usage

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

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

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

About

System executable adapter for the kitinerary extractor

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • PHP 100.0%