PHPackages                             razor/watermarker - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Image &amp; Media](/categories/media)
4. /
5. razor/watermarker

ActiveLibrary[Image &amp; Media](/categories/media)

razor/watermarker
=================

An image watermark service module for Zend Framework 2

1.0.1(11y ago)027MITPHPPHP &gt;=5.3.3

Since Jul 15Pushed 11y ago1 watchersCompare

[ Source](https://github.com/kaiohken1982/Watermarker)[ Packagist](https://packagist.org/packages/razor/watermarker)[ Docs](https://github.com/kaiohken1982/Watermarker)[ RSS](/packages/razor-watermarker/feed)WikiDiscussions master Synced 3d ago

READMEChangelogDependencies (4)Versions (3)Used By (0)

Image Watermarker Module
========================

[](#image-watermarker-module)

[![Build Status](https://camo.githubusercontent.com/8e17509f8f372906eba416627b11a7495a875d3748bfcdf61f5739eea58be0e5/68747470733a2f2f7472617669732d63692e6f72672f6b61696f686b656e313938322f57617465726d61726b65722e706e673f6272616e63683d6d6173746572)](https://travis-ci.org/kaiohken1982/Watermarker)[![Coverage Status](https://camo.githubusercontent.com/bf519bb2e1b955e3c47491d17bee1fe85ca736e7aba0dceef6c498cfb0e6c7c5/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f6b61696f686b656e313938322f57617465726d61726b65722f62616467652e706e673f6272616e63683d6d6173746572)](https://coveralls.io/r/kaiohken1982/Watermarker?branch=master)[![Dependency Status](https://camo.githubusercontent.com/2bfdc26b888f95620bf8e3d87b1c24c1de1c941f5ddd90501de73f627658d401/68747470733a2f2f7777772e76657273696f6e6579652e636f6d2f757365722f70726f6a656374732f3532623230623039656331333735653730323030303033382f62616467652e706e67)](https://www.versioneye.com/user/projects/52b20b09ec1375e702000038)[![Latest Stable Version](https://camo.githubusercontent.com/edf420924b5af906352a8d838f83d9e16ab0ca7c946e5725e11594d0da9ac250/68747470733a2f2f706f7365722e707567782e6f72672f72617a6f722f77617465726d61726b65722f762f737461626c652e706e67)](https://packagist.org/packages/razor/watermarker)[![Total Downloads](https://camo.githubusercontent.com/7abbef18f1c6bfc7ff2195353e1b872d35e87f56461525f1a9864ef32248e739/68747470733a2f2f706f7365722e707567782e6f72672f72617a6f722f77617465726d61726b65722f646f776e6c6f6164732e706e67)](https://packagist.org/packages/razor/watermarker)[![Latest Unstable Version](https://camo.githubusercontent.com/56c6e35f28ccb4882f35db68eb99d979d5fc4351ba3b4333f4555338029133b9/68747470733a2f2f706f7365722e707567782e6f72672f72617a6f722f77617465726d61726b65722f762f756e737461626c652e706e67)](https://packagist.org/packages/razor/watermarker)[![License](https://camo.githubusercontent.com/cacd7c00cebb4fffa468a3f40ce488fcf83bcaf53b878c4c61f72afd1655019d/68747470733a2f2f706f7365722e707567782e6f72672f72617a6f722f77617465726d61726b65722f6c6963656e73652e706e67)](https://packagist.org/packages/razor/watermarker)

An image watermark service module for Zend Framework 2

### Install with Composer

[](#install-with-composer)

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

```

### Configuration

[](#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

- watermarkFile: the physical path where your watermark is located
- tmpDir: the physical path for elaborated watermark

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

```

### How to use

[](#how-to-use)

In a controller

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

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

```

### Run unit test

[](#run-unit-test)

Please note you must be in the module root.

```
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

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

```

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity59

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~0 days

Total

2

Last Release

4322d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/537b38dd9b93e66b407a3ee99cea99a9b67031886107654604c41cdcfb889bc5?d=identicon)[Razorblade](/maintainers/Razorblade)

---

Top Contributors

[![kaiohken1982](https://avatars.githubusercontent.com/u/1187333?v=4)](https://github.com/kaiohken1982 "kaiohken1982 (55 commits)")

---

Tags

thumbnailimagewatermarkzf2crop

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/razor-watermarker/health.svg)

```
[![Health](https://phpackages.com/badges/razor-watermarker/health.svg)](https://phpackages.com/packages/razor-watermarker)
```

###  Alternatives

[intervention/image

PHP Image Processing

14.3k194.3M2.2k](/packages/intervention-image)[sybio/image-workshop

Powerful PHP class using GD library to work easily with images including layer notion (like Photoshop or GIMP)

860918.1k11](/packages/sybio-image-workshop)[jbzoo/image

A PHP class that simplifies working with images

171126.9k3](/packages/jbzoo-image)[intervention/image-laravel

Laravel Integration of Intervention Image

1496.5M102](/packages/intervention-image-laravel)[folklore/image

Image manipulation library for Laravel 5 based on Imagine and inspired by Croppa for easy url based manipulation

270248.2k5](/packages/folklore-image)[stefangabos/zebra_image

A single-file, lightweight PHP library designed for efficient image manipulation featuring methods for modifying images and applying filters

141110.4k6](/packages/stefangabos-zebra-image)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
