2017 © Pedro Peláez
 

library watermarker

An image watermark service module for Zend Framework 2

image

razor/watermarker

An image watermark service module for Zend Framework 2

  • Tuesday, July 15, 2014
  • by Razorblade
  • Repository
  • 1 Watchers
  • 0 Stars
  • 27 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 3 Versions
  • 0 % Grown

The README.md

Image Watermarker Module

Build Status Coverage Status Dependency Status Latest Stable Version Total Downloads Latest Unstable Version License, (*1)

An image watermark service module for Zend Framework 2, (*2)

Install with Composer

{ "repositories": [ { "type": "vcs", "url": "https://github.com/kaiohken1982/Watermarker.git" } ], "require": { ......, "razor/watermarker" : "dev-master" } }, (*3)

Configuration

Take the file config/watermarker.local.php.dist, rename it depending on your environment, remove the dist suffix and add it inside you autoload directory. You can set the value for these two path, (*4)

  • watermarkFile: the physical path where your watermark is located
  • tmpDir: the physical path for elaborated watermark, (*5)

    return array(
    'watermarker' => array(
        'watermarkFile' => '/path/to/watermark.gif',
        'tmpDir' => '/path/to/tmp'
    ),
    );
    

How to use

In a controller, (*6)

``` $watermarker = $this->getServiceLocator()->get('Watermarker'); $watermarker->openImage('/path/to/image.jpg');, (*7)

// This line is not needed if watermark file is given within configuration file
$watermarker->openWatermark('/path/to/watermark.gif');
$watermarker->watermark();

```, (*8)

Run unit test

Please note you must be in the module root., (*9)

curl -s http://getcomposer.org/installer | php
php composer.phar install
./vendor/bin/phpunit 

If you have xdebug enabled and you want to see code coverage run the command below, it'll create html files in Watermarker\test\data\coverage, (*10)

./vendor/bin/phpunit --coverage-html data/coverage

The Versions

15/07 2014

dev-master

9999999-dev https://github.com/kaiohken1982/Watermarker

An image watermark service module for Zend Framework 2

  Sources   Download

MIT

The Requires

 

The Development Requires

zf2 image crop thumbnail watermark

15/07 2014

1.0.1

1.0.1.0 https://github.com/kaiohken1982/Watermarker

An image watermark service module for Zend Framework 2

  Sources   Download

MIT

The Requires

 

The Development Requires

zf2 image crop thumbnail watermark

15/07 2014

1.0.0

1.0.0.0 https://github.com/kaiohken1982/Watermarker

An image watermark service module for Zend Framework 2

  Sources   Download

MIT

The Requires

 

The Development Requires

zf2 image crop thumbnail watermark