dev-master
9999999-devA wrapper for Tika in ZF2
The Requires
- php >=5.3.2
- symfony/process ~2.1
zf2 tika
Wallogit.com
2017 © Pedro Peláez
A wrapper for Tika in ZF2
This is a ZF2 Wrapper for Apache Tika., (*1)
It allows you to retrieve text, metadata and language from complex documents., (*2)
It supports opendocument, office .doc and .docx, pdf, images, videos and a lot more !, (*3)
See http://tika.apache.org/1.1/formats.html for details., (*4)
Add the package dependency finbarrmccarthy/tika in your composer.json, (*5)
{
"require": {
"finbarrmccarthy/tika": "@dev"
}
}
Install with composer, (*6)
php composer.phar install
In your own project, assuming you have an opendocument test.odt in the current directory, (*7)
<?php use FinbarrMcCarthy\Lib\Tika\TikaApp; $testFile = new \SplFileInfo(__DIR__."/yourdocument.pdf"); $tikaApp = new TikaApp(); $plaintext = $tikaApp->getText($testFile); $metadataArray = $tikaApp->getMetaData($testFile); $language = $tikaApp->getLanguage($testFile);
A wrapper for Tika in ZF2
zf2 tika