承接 romaricdrigon/fastimage 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

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

romaricdrigon/fastimage

最新稳定版本:0.9.2

Composer 安装命令:

composer require romaricdrigon/fastimage

包简介

Finds the size and type of a remote image by fetching as little as needed. PHP port of Ruby fastImage.

README 文档

README

FastImage finds the dimensions or filetype of a remote image file given its uri by fetching as little as needed, based on the excellent Ruby implementation by Stephen Sykes.

This version was forked from Tom Moor PHP port, and introduced a few changes:

  • usage of exceptions
  • ability to customize HTTP headers
  • namespaced, composer-ready

Usage

<?php 
		
require 'Fastimage.php';
		
$uri = "http://farm9.staticflickr.com/8151/7357346052_54b8944f23_b.jpg";
		
// loading by creating an instance and use the 'load' method
$image = new FastImage();
$image->load($uri);
$type = $image->getType();
echo "filetype: " . $type;

References

License

FastImage is released under the MIT license. It is simple and easy to understand and places almost no restrictions on what you can do with the software. More Information

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2015-08-18