2017 © Pedro Peláez
 

library sv-images

Image manipulation library written in PHP, similar to cloud image processing services like Imgix and Cloudinary. This module simplifies image manipulation for Zend Framework 2

image

svycka/sv-images

Image manipulation library written in PHP, similar to cloud image processing services like Imgix and Cloudinary. This module simplifies image manipulation for Zend Framework 2

  • Wednesday, August 2, 2017
  • by svycka
  • Repository
  • 1 Watchers
  • 6 Stars
  • 86 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 2 Forks
  • 6 Open issues
  • 3 Versions
  • 0 % Grown

The README.md

svycka/sv-images

![Build Status][ico-travis] Coverage Status Quality Score Latest Version on Packagist ![Software License][ico-license] Total Downloads, (*1)

Image manipulation library written in PHP, similar to cloud image processing services like Imgix and Cloudinary. This module simplifies image manipulation for Zend Framework 2, (*2)

Install

Via Composer, (*3)

``` bash $ composer require svycka/sv-images, (*4)


## Basic Usage - Register `SvImages` as module in `config/application.config.php` - Create filesystem factory, exmaple: ```php class ImageFilesystemFactory implements FactoryInterface { public function createService(ServiceLocatorInterface $serviceLocator) { $flysystem = new \League\Flysystem\Filesystem(new Local(__DIR__.'/path/to/files')); $adapter = new \SvImages\Filesystem\Adapter\FlySystemAdapter($flysystem); return new \SvImages\Filesystem\Filesystem($adapter); } }
  • Create cache storage, for best performance should point to public directory, so once cache is generated PHP will not be hit at all, example:
class ImageCacheStorageFactory implements FactoryInterface
{
    public function createService(ServiceLocatorInterface $serviceLocator)
    {
        $flysystem = new \League\Flysystem\Filesystem(new Local(__DIR__.'/path/to/public'));
        return new \SvImages\Cache\FlySystemStorage($flysystem);
    }
}
  • Copy the file located in vendor/svycka/sv-images/config/images.global.php.dist to config/autoload/images.global.php and change the values as you wish
  • Test it by going to http://example.com/image/crop,x15,y15,w300,h300/fit,w200,h150,top-left/f_key/your-image.jpg

Change log

Please see CHANGELOG for more information what has changed recently., (*5)

Credits

License

The MIT License (MIT). Please see License File for more information., (*6)

The Versions

02/08 2017

dev-improvement/zf3-support

dev-improvement/zf3-support https://github.com/svycka/sv-images

Image manipulation library written in PHP, similar to cloud image processing services like Imgix and Cloudinary. This module simplifies image manipulation for Zend Framework 2

  Sources   Download

MIT

The Requires

 

The Development Requires

zf2 module image gd zendframework imagick transformation imagemagick editing sv-images

07/04 2016

dev-master

9999999-dev https://github.com/svycka/sv-images

Image manipulation library written in PHP, similar to cloud image processing services like Imgix and Cloudinary. This module simplifies image manipulation for Zend Framework 2

  Sources   Download

MIT

The Requires

 

The Development Requires

zf2 module image gd zendframework imagick transformation imagemagick editing sv-images

07/04 2016

0.1.0

0.1.0.0 https://github.com/svycka/sv-images

Image manipulation library written in PHP, similar to cloud image processing services like Imgix and Cloudinary. This module simplifies image manipulation for Zend Framework 2

  Sources   Download

MIT

The Requires

 

The Development Requires

zf2 module image gd zendframework imagick transformation imagemagick editing sv-images