<commit_before># PHPWatermark

[![SensioLabsInsight](https://insight.sensiolabs.com/projects/cf8fe138-7232-4390-a3c6-f9e509221353/small.png)](https://insight.sensiolabs.com/projects/cf8fe138-7232-4390-a3c6-f9e509221353)
[![Latest Stable Version](https://poser.pugx.org/ajaxray/php-watermark/v/stable)](https://packagist.org/packages/ajaxray/php-watermark)
[![Build Status](https://travis-ci.org/ajaxray/php-watermark.svg?branch=master)](https://travis-ci.org/ajaxray/php-watermark)
[![Coverage Status](https://coveralls.io/repos/github/ajaxray/php-watermark/badge.svg?branch=master)](https://coveralls.io/github/ajaxray/php-watermark?branch=master)
<!--
[![Total Downloads](https://poser.pugx.org/ajaxray/php-watermark/downloads)](https://packagist.org/packages/ajaxray/php-watermark)
-->
[![License](https://poser.pugx.org/ajaxray/php-watermark/license)](https://packagist.org/packages/ajaxray/php-watermark)


Add text or image Watermark on image and PDF using PHP and [ImageMagick][1].

### Pre-requisite
 
 - PHP (version 5.6 or higher)
 - [ImageMagick][1]
 - [ghostscript][2] (only for PDF watermarking)

_PHP [ImageMagick][3] extension is **not required**._
 
### Installation
 
 Add as a dependency with composer
 
 ```bash
 $ composer require ajaxray/php-watermark
 ```
 
 Or download latest version as a [Zip file](https://github.com/ajaxray/php-watermark/archive/master.zip).
 
 ### How to use?
 
 ```php
  <?php<commit_msg>Showing total download badge from composer<commit_after># PHPWatermark

[![SensioLabsInsight](https://insight.sensiolabs.com/projects/cf8fe138-7232-4390-a3c6-f9e509221353/small.png)](https://insight.sensiolabs.com/projects/cf8fe138-7232-4390-a3c6-f9e509221353)
[![Latest Stable Version](https://poser.pugx.org/ajaxray/php-watermark/v/stable)](https://packagist.org/packages/ajaxray/php-watermark)
[![Build Status](https://travis-ci.org/ajaxray/php-watermark.svg?branch=master)](https://travis-ci.org/ajaxray/php-watermark)
[![Coverage Status](https://coveralls.io/repos/github/ajaxray/php-watermark/badge.svg?branch=master)](https://coveralls.io/github/ajaxray/php-watermark?branch=master)
[![Total Downloads](https://poser.pugx.org/ajaxray/php-watermark/downloads)](https://packagist.org/packages/ajaxray/php-watermark)
[![License](https://poser.pugx.org/ajaxray/php-watermark/license)](https://packagist.org/packages/ajaxray/php-watermark)


Add text or image Watermark on image and PDF using PHP and [ImageMagick][1].

### Pre-requisite
 
 - PHP (version 5.6 or higher)
 - [ImageMagick][1]
 - [ghostscript][2] (only for PDF watermarking)

_PHP [ImageMagick][3] extension is **not required**._
 
### Installation
 
 Add as a dependency with composer
 
 ```bash
 $ composer require ajaxray/php-watermark
 ```
 
 Or download latest version as a [Zip file](https://github.com/ajaxray/php-watermark/archive/master.zip).
 
 ### How to use?
 
 ```php
  <?php
{'fraction_non_alphanumeric': 0.17278393351800553, 'fraction_numerical': 0.037396121883656507, 'mean_word_length': 5.253246753246753, 'pattern_counts': {'":': 0, '<': 6, '<?xml version=': 0, '>': 4, 'https://': 26, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 7, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1235797', 'n_tokens_mistral': 1114, 'n_tokens_neox': 1046, 'n_words': 140}