{"id":19154616,"url":"https://github.com/funstaff/tika","last_synced_at":"2025-06-23T03:38:05.072Z","repository":{"id":8859999,"uuid":"10570528","full_name":"Funstaff/Tika","owner":"Funstaff","description":"Wrapper for the Apache Tika","archived":false,"fork":false,"pushed_at":"2016-03-09T12:06:24.000Z","size":74,"stargazers_count":11,"open_issues_count":0,"forks_count":6,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-15T07:52:53.940Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Funstaff.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2013-06-08T15:43:51.000Z","updated_at":"2017-11-29T06:52:20.000Z","dependencies_parsed_at":"2022-09-17T10:42:28.117Z","dependency_job_id":null,"html_url":"https://github.com/Funstaff/Tika","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Funstaff%2FTika","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Funstaff%2FTika/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Funstaff%2FTika/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Funstaff%2FTika/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Funstaff","download_url":"https://codeload.github.com/Funstaff/Tika/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252826566,"owners_count":21810132,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-09T08:27:37.476Z","updated_at":"2025-05-07T06:30:11.952Z","avatar_url":"https://github.com/Funstaff.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Tika\n\nMaster: [![Build Status](https://travis-ci.org/Funstaff/Tika.png?branch=master)](https://travis-ci.org/Funstaff/Tika)\n\nA wrapper php for [Tika binary](http://tika.apache.org)\n\nInstallation\n------------\n\nTo install tika with Composer just run:\n\n```bash\n$ php composer.phar require funstaff/tika dev-master\n```\n\nUsage\n-----\n\n```php\n\u003c?php\n\nuse Funstaff\\Tika\\Configuration;\nuse Funstaff\\Tika\\Document;\nuse Funstaff\\Tika\\Wrapper;\n\n$config = new Configuration('/path/to/tika.jar');\n$config\n    -\u003esetOutputFormat('html')\n    -\u003esetOutputEncoding('UTF-8');\n\n$wrapper = new Wrapper($config);\n$wrapper\n    -\u003eaddDocument(new Document('doc.pdf','/path/to/document.pdf'))\n    -\u003eaddDocument(new Document('doc2.pdf','/path/to/document2.pdf'))\n    -\u003eexecute();\n\n/* Get All documents */\n$documents = $wrapper-\u003egetDocument();\n\n/* or only one document */\n$document = $wrapper-\u003egetDocument('doc.pdf');\n\n/* Get Document content */\n$content = $document-\u003egetContent();\n\n/* or raw content (output of Tika) */\n$content = $document-\u003egetRawContent();\n\n/* Get All Metadata for document (only on xml and html output format) */\n$metadata = $document-\u003egetMetadata();\n\n/* Get Value for metadata */\n$author = $metadata-\u003eget('author');\n\n```\n\nCredits\n-------\nTo all users that gave feedback and committed code [https://github.com/Funstaff/Tika](https://github.com/Funstaff/Tika).\n\n© Bertrand Zuchuat - Funstaff\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffunstaff%2Ftika","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffunstaff%2Ftika","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffunstaff%2Ftika/lists"}