hocvt / tika-simple
Simple tika client
Installs: 2 571
Dependents: 1
Suggesters: 0
Security: 0
Stars: 0
Watchers: 3
Forks: 0
Open Issues: 0
Requires
- guzzlehttp/guzzle: ^7.4
This package is auto-updated.
Last update: 2024-09-08 09:27:16 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);