PHPackages                             kaia/watermarking - 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. kaia/watermarking

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

kaia/watermarking
=================

PHP Packages for adding watermark on image

v1.0.3(1y ago)02MITPHPPHP ^8.0

Since Feb 20Pushed 1y ago1 watchersCompare

[ Source](https://github.com/btwjenpun3/watermarking)[ Packagist](https://packagist.org/packages/kaia/watermarking)[ RSS](/packages/kaia-watermarking/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (4)DependenciesVersions (5)Used By (0)

Introduction
============

[](#introduction)

PHP Package where you can insert your own watermark on image. This package using PHP-GD for generating the watermark, so make sure you have PHP-GD installed before you use this package. For now this package only support on 4 positions, and will get update on future.

Requirement
-----------

[](#requirement)

- php &gt;= 8.0
- php-gd

Installation
------------

[](#installation)

To install this package, run

```
  composer require kaia/watermarking
```

Now you can use it into your PHP project

```
  use Kaia\Watermarking\Watermark;

  /** Example create watermark using text
  Watermark::createFromText($sourcePath, $destinationPath, $watermarkText, $options[]);

  /** Example create watermark using image
  Watermark::createFromImage($sourcePath, $destinationPath, $watermarkPath, $options[]);
```

Available options
-----------------

[](#available-options)

For "createFromText" method.

KeyTypeValueDefault ValueNotepositionstringtop-left, top-right, bottom-left, bottom-righttop-leftoptionalsizeintegerany number12optionalcolorstringhex color code (example #ffffff)\#ffffffoptionalfontstringpath to your .ttf filearial.ttfoptionalFor "createFromImage" method.

KeyTypeValueDefault ValueNotepositionstringtop-left, top-right, bottom-left, bottom-righttop-leftoptionalopacityintegerbetween 0.1 - 1.00.5optionalscaleintegerbetween 0.1 - 1.00.2optionalExample case :
--------------

[](#example-case-)

I want create watermark with text "I am Kaia" on existing image :

- Source Image Path = storage/images/image.jpeg
- Destination Image Path = storage/images/watermarked/watermarked.jpeg
- Watermark Position = Top Left
- Watermark Font Size = 16
- Font Path = storage/fonts/arial.ttf

```
  use Kaia\Watermarking\Watermark;

  Watermark::createFromText(
    'storage/images/image.jpeg',
    'storage/images/watermarked/watermarked.jpeg',
    'I am Kaia',
    [
      'position' => 'top-left',
      'size' => '16',
      'font' => 'storage/fonts/arial.ttf'
    ]
  );
```

And the output will be like : [![Image](https://private-user-images.githubusercontent.com/57433807/415216682-18299458-cfe5-4fb9-aa8c-9b526b836698.png?jwt=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3NzUxNjQyMjYsIm5iZiI6MTc3NTE2MzkyNiwicGF0aCI6Ii81NzQzMzgwNy80MTUyMTY2ODItMTgyOTk0NTgtY2ZlNS00ZmI5LWFhOGMtOWI1MjZiODM2Njk4LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNjA0MDIlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjYwNDAyVDIxMDUyNlomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWI3ODU1MTg2YjYwODQ0OTY2NWVlYzQ3NTc5NjEwNWIyOWRhNjNjODlkZGQ0ZjRhMThiYTVmYzc3MDc2MDhjMWMmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0._5sVpTXk1_LgtIks9P9z-_Xwu5cc1MukWyl8fsXTHL4)](https://private-user-images.githubusercontent.com/57433807/415216682-18299458-cfe5-4fb9-aa8c-9b526b836698.png?jwt=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3NzUxNjQyMjYsIm5iZiI6MTc3NTE2MzkyNiwicGF0aCI6Ii81NzQzMzgwNy80MTUyMTY2ODItMTgyOTk0NTgtY2ZlNS00ZmI5LWFhOGMtOWI1MjZiODM2Njk4LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNjA0MDIlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjYwNDAyVDIxMDUyNlomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWI3ODU1MTg2YjYwODQ0OTY2NWVlYzQ3NTc5NjEwNWIyOWRhNjNjODlkZGQ0ZjRhMThiYTVmYzc3MDc2MDhjMWMmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0._5sVpTXk1_LgtIks9P9z-_Xwu5cc1MukWyl8fsXTHL4)

Support me
----------

[](#support-me)

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance43

Moderate activity, may be stable

Popularity2

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity46

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

4

Last Release

452d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/1f782587407110e2660e886819afd30983beb967692a30cfe60a780abe82f4f0?d=identicon)[btwjenpun3](/maintainers/btwjenpun3)

---

Top Contributors

[![btwjenpun3](https://avatars.githubusercontent.com/u/57433807?v=4)](https://github.com/btwjenpun3 "btwjenpun3 (5 commits)")

### Embed Badge

![Health badge](/badges/kaia-watermarking/health.svg)

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

###  Alternatives

[milon/barcode

Barcode generator like Qr Code, PDF417, C39, C39+, C39E, C39E+, C93, S25, S25+, I25, I25+, C128, C128A, C128B, C128C, 2-Digits UPC-Based Extention, 5-Digits UPC-Based Extention, EAN 8, EAN 13, UPC-A, UPC-E, MSI (Variation of Plessey code)

1.5k13.3M39](/packages/milon-barcode)[bkwld/croppa

Image thumbnail creation through specially formatted URLs for Laravel

510496.0k23](/packages/bkwld-croppa)[goat1000/svggraph

Generates SVG graphs

132849.6k3](/packages/goat1000-svggraph)[cohensive/embed

Media Embed (for Laravel or as a standalone).

120370.4k](/packages/cohensive-embed)[netresearch/rte-ckeditor-image

Image support in CKEditor for the TYPO3 ecosystem - by Netresearch

63991.3k4](/packages/netresearch-rte-ckeditor-image)[humanmade/tachyon-plugin

Rewrites WordPress image URLs to use Tachyon

87338.5k2](/packages/humanmade-tachyon-plugin)

PHPackages © 2026

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