PHP code example of enzim / tika-wrapper
1. Go to this page and download the library: Download enzim/tika-wrapper library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
enzim / tika-wrapper example snippets
use Enzim\Lib\TikaWrapper\TikaWrapper;
$testFile = __DIR__."/test.odt";
$plaintext = TikaWrapper::getText($testFile);
$metadataArray = TikaWrapper::getMetaData($testFile);
$language = TikaWrapper::getLanguage($testFile);
json
{
"kopac/php-tika-wrapper": "~1.0"
}
}
bash
git clone [email protected]:pierroweb/PhpTikaWrapper.git
cd PhpTikaWrapper
cd example/with-composer
curl -s http://getcomposer.org/installer | php
php composer.phar install
php usage.php