freeman/image-exif-reader 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

freeman/image-exif-reader

Composer 安装命令:

composer require freeman/image-exif-reader

包简介

PHP Exif reader for images that ensures image path is not a URL

README 文档

README

PHP exif wrapper that ensures image is valid and not a URL. Allows for fetching of single fields of exif data. PSR-4 compliant for easy autoloading.

Prerequisites

Usage

PHP 7.0^

Development

phpunit 6.1^

Installation

Use composer to install this library.

Either use CLI:

php composer.phar require "freeman/image-exif-reader"

or add it to your composer file:

"freeman/image-exif-reader": "^1.0"

Usage

Create a new instance of the ImageExifReader class provided in src folder

$reader = new \Freeman\ImageExifReader\ImageExifReader();

To get an array of exif, use getExifData.

$reader->getExifData($myImagePath);

If you only want the data from a specific key of the exif array, use getExifDataByKey. For instance, if you wish to retrieve only the filename:

$reader->getExifDataByKey($myImage, 'FileName')

In both scenarios the call will return null if the image format is wrong, or the requested exif data does not exist.

In case the file does not exist an exception is thrown

Running tests

Image Exif Reader comes with phpunit tests and a phpunit.xml file.

Version History

1.0.0: Initial release on GitHub and Packagist

1.0.1: Readme updates only

统计信息

  • 总下载量: 28
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 1
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 1
  • Watchers: 0
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2017-05-23

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固