Skip to content

php binding to invoke a shipped kitinerary-extractor binary

License

Notifications You must be signed in to change notification settings

nextcloud-libraries/kitinerary-bin

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

63 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

kitinerary-bin

REUSE status

Binary executable adapter for the kitinerary extractor package. This package provides an adapter that invokes a shipped kitinerary-extractor executable on x86_64 Linux systems.

The statically linked binary is created from source.

Installation

composer require nextcloud/kitinerary nextcloud/kitinerary-bin

Usage

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

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

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

About

php binding to invoke a shipped kitinerary-extractor binary

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • PHP 100.0%