10/12
2015
dev-master
9999999-devBundle for Apache Tika wrapper
MIT
The Requires
- php >=5.3.2
- funstaff/tika dev-master
Bundle for Apache Tika wrapper
A bundle for Tika wrapper, (*1)
To install FunstaffTikaBundle with Composer just run:, (*2)
$ php composer.phar require funstaff/tika-bundle dev-master
config.yml, (*3)
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:, (*4)
$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();
To all users that gave feedback and committed code https://github.com/Funstaff/TikaBundle., (*5)
© Bertrand Zuchuat - Funstaff, (*6)
Bundle for Apache Tika wrapper
MIT