定制 razor/thumbnailer 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

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

razor/thumbnailer

Composer 安装命令:

composer require razor/thumbnailer

包简介

An image thumbnailer service module for Zend Framework 2

README 文档

README

Build Status Coverage Status Dependency Status Latest Stable Version Total Downloads Latest Unstable Version

  • An image thumbnailer service module for Zend Framework 2.
  • There is also available a form filter that internally uses the Thumbnailer service.

Install with Composer

{
 "repositories": [
       {
           "type": "vcs",
           "url": "https://github.com/kaiohken1982/Thumbnailer.git"
       }
   ],
   "require": {
       ......,
       "razor/thumbnailer" : "dev-master"
   }
}

How to use

In a controller

   	$thumbnailer = $this->getServiceLocator()->get('Thumbnailer');
   	$thumbnailer->open('\path\to\image.png');
   	$thumbnailer->resize(400);
   	$thumbnailer->save('\path\to\image_resized.png');

Run unit test

Please note you must be in the module root.

curl -s http://getcomposer.org/installer | php
php composer.phar install
./vendor/bin/phpunit 

If you have xdebug enabled and you want to see code coverage run the command below, it'll create html files in Thumbnailer\test\data\coverage

./vendor/bin/phpunit --coverage-html data/coverage

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2013-09-06

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固