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
Via Composer
$ composer require svycka/sv-images
SvImages
as module in config/application.config.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);
}
}
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);
}
}
vendor/svycka/sv-images/config/images.global.php.dist
to config/autoload/images.global.php
and change the values as you wishPlease see CHANGELOG for more information what has changed recently.
The MIT License (MIT). Please see License File for more information.