vvval/exiftool-reader
Composer 安装命令:
composer require vvval/exiftool-reader
包简介
Exiftool reader process wrapper
README 文档
README
A PHP wrapper to fetch data from exiftools util.
Installation
composer require vvval/exiftool-reader
Example usage
<?php $exiftoolConfig = new \ExiftoolReader\Config\Exiftool(); $command = new \ExiftoolReader\Command($exiftoolConfig); $mapperConfig = new \ExiftoolReader\Config\Mapper(); $utils = new \ExiftoolReader\Utils(); $reader = new \ExiftoolReader\Reader($command); $metadata = new \ExiftoolReader\Metadata($mapperConfig, $utils); /** @var ExiftoolReader\Result $output */ $output = $reader->read('filename'); /** * Full metadata array. */ $decoded = $output->getDecoded(); var_dump($decoded); // ['title' => '...', 'description' => '...', /* ... other fields */] /** * Fetched specified metadata keys. * Uses aliases to find values, * for example Title|ObjectName, Description|Caption-Abstract|ImageDescription, etc... */ $fetchedData = $metadata->fetch($output, ['title', 'description']); var_dump($fetchedData); // ['title' => '...', 'description' => '...']
统计信息
- 总下载量: 34
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 4
- 点击次数: 6
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2017-01-03