ugosansh/bundle-clientimage
最新稳定版本:v1.2.0
Composer 安装命令:
composer require ugosansh/bundle-clientimage
包简介
Client bundle from image api service (bundle-apiimage)
README 文档
README
Client from service image api
Beta Version
Dont' use in production.
Installation
Add Bundle to your composer.json
"ugosansh/bundle-clientimage": "~0.1"
Enable bundle
<?php class AppKernel extends Kernel { public function registerBundles() { $bundles = [ ... new Ugosansh\Bundle\Image\ClientBundle\UgosanshImageClientBundle(), ... ]; ?>
Configuration reference
ugosansh_image_client: api: # Node api based from m6web WsClientBundle base_url: "http://api.domain.tld" config: timeout: 2 exceptions: false logger: logger_service_name # (Option) A logger from WsClient service default_image: "img/default-image.jpg" # (Option) Define default image entity_class: Acme\Bundle\MyBundle\Entity\Image # (Option)
This bundles require https://github.com/M6Web/WsClientBundle
The configuration node api extends the configuration reference of WsClientBundle.
Use from twig template
<!-- render(ImageInterface image, int width = null, int height = null, int crop = null, array attr = []); -->
{{ image_render(image, 200, 100, 1, {'class': 'thumbnail'}) }}
统计信息
- 总下载量: 802
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2015-02-16