funstaff/tika-bundle

Bundle for Apache Tika wrapper

Installs: 13 428

Dependents: 1

Suggesters: 0

Security: 0

Stars: 1

Watchers: 2

Forks: 1

Open Issues: 0

Type:bundle

dev-master / 1.x-dev 2015-12-10 13:52 UTC

This package is auto-updated.

Last update: 2024-11-09 01:30:54 UTC


README

#TikaBundle

A bundle for Tika wrapper

Installation

To install FunstaffTikaBundle with Composer just run:

$ php composer.phar require funstaff/tika-bundle dev-master

Usage

config.yml

funstaff_tika:
    tika_path:  /path/to/tika.jar   # required
    java_path:  ~                   # default: null
    metadata_class: ~               # default: Funstaff\Tika\Metadata
    output_format: ~                # default: xml
    metadata_only: ~                # default: false
    output_encoding: ~              # default: UTF-8
    logging: ~                      # default: prod = false, dev = true

On controller:

$wrapper = $this->get('funstaff_tika.wrapper')
    ->addDocument(new Document('doc.pdf', $funstaffVendor.'/Tests/File/test.pdf'))
    ->execute();

/* Get Document */
$document = $wrapper->getDocument('doc.pdf');

/* Get Metadata */
$metadata = $document->getMetadata();

Credits

To all users that gave feedback and committed code https://github.com/Funstaff/TikaBundle.

© Bertrand Zuchuat - Funstaff