PHPackages                             bukwid/phexif-tool - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. bukwid/phexif-tool

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

bukwid/phexif-tool
==================

A portable ExifTool bridge for php

02Perl

Since Jan 30Pushed 3mo agoCompare

[ Source](https://github.com/Bukwid/phexif-tool)[ Packagist](https://packagist.org/packages/bukwid/phexif-tool)[ RSS](/packages/bukwid-phexif-tool/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

PHExifTool
==========

[](#phexiftool)

[![Version](https://camo.githubusercontent.com/3fb4be5dc3c1df885e1ba26b96adcd365a07351f276a4a4370e36a07906260a1/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f76657273696f6e2d302e312e302d626c75652e737667)](https://github.com/Bukwid/PHExifTool)[![License](https://camo.githubusercontent.com/8bb50fd2278f18fc326bf71f6e88ca8f884f72f179d3e555e20ed30157190d0d/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d677265656e2e737667)](LICENSE)

**PHExifTool** is a lightweight PHP bridge for [Phil Harvey's ExifTool](https://exiftool.org/). It provides a clean, object-oriented interface to read and write metadata across hundreds of file formats (JPEG, PNG, PDF, TIFF, and more).

---

⚠️ Important Note
-----------------

[](#️-important-note)

This library acts as a **bridge**. It does not rewrite the ExifTool logic in PHP; instead, it executes the `exiftool` binary on your system and parses the results.

### Dependencies

[](#dependencies)

- **Non-Windows Users (Linux/macOS):** You must have `exiftool` installed on your system.
    - *Ubuntu/Debian:* `sudo apt install exiftool`
    - *macOS:* `brew install exiftool`
- **Windows Users:** Basic support is available, but the `exiftool.exe` must be in your system PATH.
- **Future Updates:** We plan to include bundled binaries in future versions to remove the manual installation requirement.

---

🚀 Installation
--------------

[](#-installation)

You can install the package via Composer:

```
composer require bukwid/phexif-tool
```

💡 Basic Usage
-------------

[](#-basic-usage)

Remeber to define the composer autoload.

### Initialization

[](#initialization)

```
use Bukwid\PHExifTool\ExifTool;

$exifTool = new ExifTool();
```

### Read Function

[](#read-function)

```
$file = __DIR__ . '/your_file.png';
try {
    $metadata = $exifTool->read($file);
    print_r($metadata);
} catch (RuntimeException $e) {
    echo 'Error: ' . $e->getMessage() . PHP_EOL;
}
```

### Write Function

[](#write-function)

```
$file = __DIR__ . '/your_file.png';
try {
    $exifTool->write($file, [
        'Title' => 'PDF Auth sample file',
    ]);
} catch (RuntimeException $e) {
    echo 'Error: ' . $e->getMessage() . PHP_EOL;
}
```

🛠 Features
----------

[](#-features)

- Metadata Extraction: Access EXIF, GPS, IPTC, XMP, and more.
- Metadata Writing: Easily update tags using simple key-value arrays.
- Format Support: Works with any file format supported by the underlying ExifTool binary.

🗺 Roadmap
---------

[](#-roadmap)

- Add support for batch file processing.
- Implement JSON output parsing for more complex data structures.
- Add helper methods for common tags (e.g., $exifTool-&gt;getGPS()).

📄 License
---------

[](#-license)

MIT License

Copyright (c) 2026 Kenneth Buquid

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

🙌 Credits
---------

[](#-credits)

Built with ❤️ by Kenneth Leonard M. Buquid. Inspired to create this in order to complete PDF-AUTH.

###  Health Score

18

—

LowBetter than 8% of packages

Maintenance53

Moderate activity, may be stable

Popularity2

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity12

Early-stage or recently created project

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

### Community

Maintainers

![](https://www.gravatar.com/avatar/fb2cd1078c1f7d3ffbe6812b1b090ea91765d1a60b5c134ee9553047140222af?d=identicon)[Bukwid](/maintainers/Bukwid)

---

Top Contributors

[![Bukwid](https://avatars.githubusercontent.com/u/191247760?v=4)](https://github.com/Bukwid "Bukwid (9 commits)")

### Embed Badge

![Health badge](/badges/bukwid-phexif-tool/health.svg)

```
[![Health](https://phpackages.com/badges/bukwid-phexif-tool/health.svg)](https://phpackages.com/packages/bukwid-phexif-tool)
```

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
