hocvt / tika-simple
Simple tika client
Installs: 2 760
Dependents: 1
Suggesters: 0
Security: 0
Stars: 0
Watchers: 3
Forks: 2
Open Issues: 0
Requires
- guzzlehttp/guzzle: ^7.4
This package is auto-updated.
Last update: 2024-12-08 10:01:05 UTC
README
Install
composer require hocvt/tika-simple
Usage
require __DIR__ . "/../vendor/autoload.php"; $client = new \HocVT\TikaSimple\TikaSimpleClient(); $file = __DIR__ . "/demo.docx"; $mime = $client->mimeFile($file); echo "Tika version " . $client->version() . "\n"; var_dump($mime); $html = $client->rmetaFile($file, 'html'); var_dump($html);