ogogo / tika
A wrapper for Tika in ZF2
Installs: 18
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/ogogo/tika
Requires
- php: >=5.3.2
- symfony/process: ~2.1
This package is not auto-updated.
Last update: 2025-09-23 20:29:22 UTC
README
This is a ZF2 Wrapper for Apache Tika.
It allows you to retrieve text, metadata and language from complex documents.
Supported formats
It supports opendocument, office .doc and .docx, pdf, images, videos and a lot more !
See http://tika.apache.org/1.7/formats.html for details.
Install with composer
Add the package dependency ogogo/tika
in your composer.json
{
"require": {
"ogogo/tika": "dev-master"
}
}
Install with composer
php composer.phar install
Usage
In your own project, assuming you have an opendocument test.odt in the current directory
<?php
use Ogogo\Lib\Tika\TikaApp;
$testFile = new \SplFileInfo(__DIR__."/yourdocument.pdf");
$tikaApp = new TikaApp();
$plaintext = $tikaApp->getText($testFile);
$metadataArray = $tikaApp->getMetaData($testFile);
$language = $tikaApp->getLanguage($testFile);