https://github.com/funstaff/tikabundle
Bundle for Apache Tika wrapper
https://github.com/funstaff/tikabundle
Last synced: about 1 year ago
JSON representation
Bundle for Apache Tika wrapper
- Host: GitHub
- URL: https://github.com/funstaff/tikabundle
- Owner: Funstaff
- License: mit
- Created: 2013-06-09T12:45:50.000Z (about 13 years ago)
- Default Branch: master
- Last Pushed: 2015-12-10T13:52:46.000Z (over 10 years ago)
- Last Synced: 2025-04-19T19:35:01.914Z (over 1 year ago)
- Language: PHP
- Size: 7.81 KB
- Stars: 1
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
#TikaBundle
A bundle for [Tika wrapper](https://github.com/Funstaff/Tika)
Installation
------------
To install FunstaffTikaBundle with Composer just run:
```bash
$ php composer.phar require funstaff/tika-bundle dev-master
```
Usage
-----
config.yml
```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:
```php
$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](https://github.com/Funstaff/TikaBundle).
© Bertrand Zuchuat - Funstaff