hocvt/tika-simple

There is no license information available for the latest version (v1.1.0) of this package.

Simple tika client

v1.1.0 2024-01-08 08:06 UTC

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);