{"id":18471364,"url":"https://github.com/gomoob/php-metadata-extractor","last_synced_at":"2025-04-08T11:32:11.960Z","repository":{"id":62511741,"uuid":"65186021","full_name":"gomoob/php-metadata-extractor","owner":"gomoob","description":"PHP wrapper to easily call the Java metadata-extrator library.","archived":false,"fork":false,"pushed_at":"2016-08-25T09:51:34.000Z","size":4964,"stargazers_count":10,"open_issues_count":0,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-23T11:51:18.239Z","etag":null,"topics":["gomoob","metadata-extraction","metadata-extractor","php"],"latest_commit_sha":null,"homepage":null,"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/gomoob.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-08-08T08:16:44.000Z","updated_at":"2025-02-25T16:17:29.000Z","dependencies_parsed_at":"2022-11-02T13:16:39.014Z","dependency_job_id":null,"html_url":"https://github.com/gomoob/php-metadata-extractor","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gomoob%2Fphp-metadata-extractor","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gomoob%2Fphp-metadata-extractor/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gomoob%2Fphp-metadata-extractor/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gomoob%2Fphp-metadata-extractor/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gomoob","download_url":"https://codeload.github.com/gomoob/php-metadata-extractor/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247833999,"owners_count":21003898,"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":["gomoob","metadata-extraction","metadata-extractor","php"],"created_at":"2024-11-06T10:16:43.556Z","updated_at":"2025-04-08T11:32:11.284Z","avatar_url":"https://github.com/gomoob.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# php-metadata-extractor\n\n\u003e PHP wrapper to easily call the Java metadata-extrator library.\n\n[![Total Downloads](https://img.shields.io/packagist/dt/gomoob/php-metadata-extractor.svg?style=flat)](https://packagist.org/packages/gomoob/php-metadata-extractor) \n[![Latest Stable Version](https://img.shields.io/packagist/v/gomoob/php-metadata-extractor.svg?style=flat)](https://packagist.org/packages/gomoob/php-metadata-extractor) \n[![Build Status](https://img.shields.io/travis/gomoob/php-metadata-extractor.svg?style=flat)](https://travis-ci.org/gomoob/php-metadata-extractor)\n[![Coverage](https://img.shields.io/coveralls/gomoob/php-metadata-extractor.svg?style=flat)](https://coveralls.io/r/gomoob/php-metadata-extractor?branch=master)\n[![Code Climate](https://img.shields.io/codeclimate/github/gomoob/php-metadata-extractor.svg?style=flat)](https://codeclimate.com/github/gomoob/php-metadata-extractor)\n[![License](https://img.shields.io/packagist/l/gomoob/php-metadata-extractor.svg?style=flat)](https://packagist.org/packages/gomoob/php-metadata-extractor)\n\n## Introduction\n\n`php-metadata-extractor` is a wrapper used to call the powerful Java \n[`metadata-extractor`](https://github.com/drewnoakes/metadata-extractor \"metadata-extractor\") library and have access to\nthe same APIs in PHP.\n\nSo here we'll provide the same documentation as `metadata-extractor` but for PHP, here is how to get metadata \nwith the library.\n\n```php\nMetadata metadata = ImageMetadataReader.readMetadata(imagePath);\n```\n\n## Installation\n\nThe easiest way to install the library is to use [composer](https://getcomposer.org/ \"composer\") and define the \nfollowing dependency inside your `composer.json` file :\n\n```json\n{\n    \"require\": {\n        \"gomoob/php-metadata-extractor\": \"~2.9\"\n    }\n}\n```\n\nPlease also note that because the library is a wrapper around a Java library the `java` executable must be available\nin your `PATH` variable.\n\n## Versioning\n\nTo easier version identification the version of `php-metadata-extractor` will always be aligned with the version\nof the Java `metadata-extractor` library. \n\nStable versions of `php-metadata-extrator` will be equal to `X.Y.Z-N` where `N` represents a patch number \nassociated to `php-metadata-extractor`. \n\nUnstable or uncomplete versions of `php-metadata-extractor` will be equal to `X.Y.Z-alpha.N`,  \n`X.Y.Z-beta.N` or `X.Y.Z-rc.N`. \n\n## Contribute\n\n### Rules\n\nThe `metadata-extractor` Java library is very complete, so we need to improve its integration, if you would like \nto contribute please respect the following rules : \n\n* Create your pull requests only on the `develop` branch, the `master` branch should only be used by Gomoob to \n  create new versions ; \n* Use the `grunt phpcbf` command to automatically format your code with PHP Code Sniffer ; \n* Use the `grunt phpcs` command to check your code before creating your Pull request ; \n* Always try to fully document your classes, properties and functions. \n\n### Builds\n\nThe build scripts are managed with [Grunt](\"Grunt\"), to use is you first have to install [Node](\"Node\") and use the \n`npm install`.\n\nThe PHP dependencies are managed with [Composer](\"Composer\"), run the `composer update` command before calling any\nbuild command.\n\nEnsure you have a working Java environnement and that the `java` executable is available in your `PATH`.\n\nThe following builds are available :\n\n* `grunt` clean temporary build files, run the PHPUnit unit tests and generated the PHPDocumentor documentation ;\n* `grunt phpcbf` automatically clean the source code for PHP Code Sniffer ; \n* `grunt phpcs` check the validity of the source code with PHP Code Sniffer ; \n* `grunt test` execute the PHPUnit unit tests ; \n* `grunt generate-documentation` generate the PHPDocumentor documentation ; \n* `grunt pdepend` generate the PDepend quality charts ; \n* `grunt phpmd` generate the PHPMD code quality reports.\n\n## Release history\n\n### 2.9.1-alpha.4 (2016-08-25)\n * Add `\\Gomoob\\MetadataExtractor\\Metadata\\Photoshop\\DuckyDirectory` class.\n\n### 2.9.1-alpha.3 (2016-08-25)\n * Add `\\Gomoob\\MetadataExtractor\\Metadata\\Bmp\\BmpHeaderDescriptor` to begin management of BMP files ; \n * Add `\\Gomoob\\MetadataExtractor\\Metadata\\Bmp\\BmpHeaderDirectory` to begin management of BMP files ; \n * Update composer dependencies and improve composer configuration.\n\n### 2.9.1-alpha.2 (2016-08-10)\n * Implement the `\\Gomoob\\MetadataExtractor\\Metadata\\Directory#containsTag($tagType)` method ;\n * Fix unit tests on Travis ;\n * Add contribution instructions in the README file.\n\n### 2.9.1-alpha.1 (2016-08-09)\n * Initial version.\n\n## About Gomoob\n\nAt [Gomoob](https://www.gomoob.com) we build high quality software with awesome Open Source frameworks everyday. Would \nyou like to start your next project with us? That's great! Give us a call or send us an email and we will get back to \nyou as soon as possible !\n\nYou can contact us by email at [contact@gomoob.com](mailto:contact@gomoob.com) or by phone number \n[(+33) 6 85 12 81 26](tel:+33685128126) or [(+33) 6 28 35 04 49](tel:+33685128126).\n\nVisit also http://gomoob.github.io to discover more Open Source softwares we develop.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgomoob%2Fphp-metadata-extractor","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgomoob%2Fphp-metadata-extractor","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgomoob%2Fphp-metadata-extractor/lists"}