nextcloud / kitinerary-sys
KItinerary binding for the system package
v1.0.1
2024-08-02 13:48 UTC
Requires
- php: ^7.4 || ^8.0
- ext-json: *
- nextcloud/kitinerary: ^1.0
- psr/log: ^1.1|^2.0|^3.0
Requires (Dev)
- phpunit/phpunit: ^9.5
This package is auto-updated.
Last update: 2024-10-10 09:41:33 UTC
README
kitinerary-sys
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) { // ... }