2017 © Pedro Peláez
 

symfony-bundle image-bundle

Giko Image Resize Bundle

image

giko/image-bundle

Giko Image Resize Bundle

  • Sunday, September 27, 2015
  • by gikoluo
  • Repository
  • 1 Watchers
  • 0 Stars
  • 17 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 4 Versions
  • 0 % Grown

The README.md

介绍

本组件可用于图片缩放,通过URL参数,即可加载不同尺寸的图片。同时支持紫铜的@2x, @3x图片。, (*1)

组件仅支持Symfony2.7+, (*2)

## 安装

Step 1. 将本组件 giko/image-bundlesonata-project/media-bundle 添加到 composer.json 文件:

        "require": {
            #...
            "sonata-project/media-bundle": "dev-master",
            "giko/image-bundle": "dev-master",
        }

Step 2. 在应用内核代码中注册组件:

          //app/AppKernel.php
          public function registerBundles()
          {
              return array(
                  // ...
                  new Giko\ImageBundle\GikoImageBundle(),
                  // ...
              );
          }

Step 3. Sonata Media的相关配置步骤,请参见Sonata Media文档:

Step 4. 增加Route

    giko_image:
        resource: "@GikoImageBundle/Resources/config/routing.yml"
        prefix:   /

如果,咳咳,我的代码对你有帮助,在Github上加个星,让我知道你看到了本代码。, (*3)

通过支付宝捐赠

The Versions

27/09 2015

dev-master

9999999-dev https://github.com/gikoluo/ImageBundle

Giko Image Resize Bundle

  Sources   Download

Apache License 2.0

The Requires

 

image resize

27/09 2015

1.0.1

1.0.1.0 https://github.com/gikoluo/ImageBundle

Giko Image Resize Bundle

  Sources   Download

Apache License 2.0

The Requires

 

image resize

26/09 2015

1.0.x-dev

1.0.9999999.9999999-dev https://github.com/gikoluo/ImageBundle

Giko Image Resize Bundle

  Sources   Download

Apache License 2.0

The Requires

 

image resize

26/09 2015

1.0.0

1.0.0.0 https://github.com/gikoluo/ImageBundle

Giko Image Resize Bundle

  Sources   Download

Apache License 2.0

The Requires

 

image resize