2017 © Pedro Peláez
 

library tika

A wrapper for Tika in ZF2

image

ogogo/tika

A wrapper for Tika in ZF2

  • Saturday, January 31, 2015
  • by ogogo
  • Repository
  • 1 Watchers
  • 0 Stars
  • 12 Installations
  • PHP
  • 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.7/formats.html for details., (*4)

Install with composer

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

{
    "require": {
        "ogogo/tika": "dev-master" 
    }   
}

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

The Versions

31/01 2015

dev-master

9999999-dev

A wrapper for Tika in ZF2

  Sources   Download

The Requires

 

zf2 tika