poznet/image 问题修复 & 功能扩展

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

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

poznet/image

最新稳定版本:0.0.1

Composer 安装命令:

composer require poznet/image

包简介

Simple Image procesing for Laravel 5 - wrapper for intervention/image

README 文档

README

Wrapper for intervention/image

SensioLabsInsight

Bundle/Service created for simple dynamic image manipulation (resize for example). Stores manipulated images in cache for better performance.

###Requirments

  • Laravel 5.0 + (this bundle is for Laravel5+ )
  • intervention/image >= 2.3

###Installation

  • Add to poznet/image your composer.json

composer require poznet/image:dev-master

  • In config/app.php register service in providers (add "Poznet\Image\PoznetImageProvider" to providers)
providers' => [

		/*
		 * Laravel Framework Service Providers...
		 */
         ...
		'Poznet\Image\PoznetImageProvider',
],

###Usage All paths is relative to /storage/app/ and it's get by Storage Facade (local), so it can be easily change to ftp/scp/Amazon/Dropbox etc.

  1. Resized image in Blade view to get resized image with widh of 450px use code below. Output is cached for 60 minutes with Cache Facade.

<img src="{{route('imagemin', ['width'=>'450','path'=>'logo.jpg'])}}">

Licence

Intervention Imagecache Class is licensed under the MIT License. Feel free to contribute.

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2015-11-07