ugosansh/bundle-clientimage 问题修复 & 功能扩展

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

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

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2015-02-16