PHPackages                             cleitonalmeida/watermark - 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. cleitonalmeida/watermark

ActiveLibrary

cleitonalmeida/watermark
========================

Insert watermark on your images easily using this module to ZendFramework 2

24553PHP

Since Feb 17Pushed 13y ago2 watchersCompare

[ Source](https://github.com/CleitonAlmeida/watermark)[ Packagist](https://packagist.org/packages/cleitonalmeida/watermark)[ RSS](/packages/cleitonalmeida-watermark/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

WaterMark
=========

[](#watermark)

Insert watermark on your images easily using this module to ZendFramework 2

Setup
-----

[](#setup)

Following steps are necessary to get this module working, considering a zf2-skeleton or very similar application:

1. Run: `php composer.phar require cleitonalmeida/watermark:dev-master`
2. Add `WaterMark` to the enabled modules list.

QuickStart
----------

[](#quickstart)

- For example add following code to controller action, assume example image:

    ```
    //taking the image url
    $targetFolder = 'public/uploads/';
    $url = $renderer->basePath($targetFolder);
    $url = $_SERVER['DOCUMENT_ROOT'] . $url;

    $watermark = $this->getServiceLocator()->get('WaterMark');
    $watermark_options = array(
      'watermark' => $url . "/watermark.png",
      'halign' => +1,
      'valign' => +1,
      'hshift' => -10,
      'vshift' => -10,
      'type' => IMAGETYPE_JPEG,
      'jpeg-quality' => 70,
    );

    // Save watermarked image to file
    $watermark::output($url . "input_image.jpg", $url . "output_image.jpg", $watermark_options);

    ```

Please, if you are interested in this Zend Framework module report any issues and don't hesitate to contribute.

[Report a bug](https://github.com/CleitonAlmeida/watermark/issues) | [Fork me](https://github.com/CleitonAlmeida/watermark)

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity18

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/b4a4ae79136ec61a6763a36e7860d1ba17ae3dde98e08348e5bbd7d2ae7e1004?d=identicon)[CleitonAlmeida](/maintainers/CleitonAlmeida)

### Embed Badge

![Health badge](/badges/cleitonalmeida-watermark/health.svg)

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

PHPackages © 2026

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