2017 © Pedro Peláez
 

library tika

A wrapper for Tika in ZF2

image

finbarrmccarthy/tika

A wrapper for Tika in ZF2

  • Tuesday, January 21, 2014
  • by finbarrmccarthy
  • Repository
  • 1 Watchers
  • 0 Stars
  • 12 Installations
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

This is a ZF2 Wrapper for Apache Tika., (*1)

It allows you to retrieve text, metadata and language from complex documents., (*2)

Supported formats

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)

Install with composer

Add the package dependency finbarrmccarthy/tika in your composer.json, (*5)

{
    "require": {
        "finbarrmccarthy/tika": "@dev" 
    }   
}

Install with composer, (*6)

php composer.phar install

Usage

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

The Versions

21/01 2014

dev-master

9999999-dev

A wrapper for Tika in ZF2

  Sources   Download

The Requires

 

zf2 tika