PHPackages                             ninoskopac/php-tika-wrapper - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [PDF &amp; Document Generation](/categories/documents)
4. /
5. ninoskopac/php-tika-wrapper

ActiveLibrary[PDF &amp; Document Generation](/categories/documents)

ninoskopac/php-tika-wrapper
===========================

This is a simple PHP Wrapper for Apache Tika (using the tika-app jar)

1.0.4(9y ago)6011.1k23[1 PRs](https://github.com/NinoSkopac/PhpTikaWrapper/pulls)PHPPHP &gt;=5.3.2

Since Jan 4Pushed 6y ago8 watchersCompare

[ Source](https://github.com/NinoSkopac/PhpTikaWrapper)[ Packagist](https://packagist.org/packages/ninoskopac/php-tika-wrapper)[ RSS](/packages/ninoskopac-php-tika-wrapper/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (5)Dependencies (2)Versions (6)Used By (0)

This is a simple PHP Wrapper for Apache Tika.

It allows the developer to retrieve text, metadata and language from complex documents.

Supported formats
-----------------

[](#supported-formats)

It supports opendocument, office .doc and .docx, pdf, images, videos and a lot more !

See  for details.

Install with composer
---------------------

[](#install-with-composer)

Add the package dependency `enzim/tika-wrapper` in your composer.json

```
    {
        "require": {
            "ninoskopac/php-tika-wrapper": "~1.0"
        }
    }
```

Install the new package with composer, and that's it!

```
php composer.phar install

```

For convenience, the package include the tika-app jar file, which is quite big (25MB). *The download may take time!*

See  for more details. (Don't forget to add `require 'vendor/.composer/autoload.php';` in your autoloading php file).

Example installation/usage
--------------------------

[](#example-installationusage)

See example/ (more docs to come soon) for an example:

```
    git clone git@github.com:pierroweb/PhpTikaWrapper.git
    cd PhpTikaWrapper

    cd example/with-composer
    curl -s http://getcomposer.org/installer | php
    php composer.phar install
    php usage.php
```

Usage
-----

[](#usage)

In your own project, assuming you have an opendocument test.odt in the current directory

```
