PHPackages                             karster/mozify - 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. [Mail &amp; Notifications](/categories/mail)
4. /
5. karster/mozify

ActiveLibrary[Mail &amp; Notifications](/categories/mail)

karster/mozify
==============

1.1(3y ago)41.9k1MITPHPPHP &gt;=7.0

Since May 26Pushed 3y ago1 watchersCompare

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

READMEChangelog (2)Dependencies (2)Versions (3)Used By (0)

Mozify
======

[](#mozify)

[![Build Status](https://camo.githubusercontent.com/31b1968b36402b125e4bcb6f5d1297228546a8ba546407d1a86c7583c43f9bf0/68747470733a2f2f7472617669732d63692e6f72672f6b6172737465722f6d6f7a6966792e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/karster/mozify)[![Latest Stable Version](https://camo.githubusercontent.com/70923d9856bdf877ca29255a3abc07dad2beee0d4dc0645f30bec0670305f8d8/68747470733a2f2f706f7365722e707567782e6f72672f6b6172737465722f6d6f7a6966792f762f737461626c65)](https://packagist.org/packages/karster/mozify)[![GitHub license](https://camo.githubusercontent.com/7013272bd27ece47364536a221edb554cd69683b68a46fc0ee96881174c4214c/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d626c75652e737667)](LICENSE.md)

> Email client blocks images by default. Mozify is way how to serve images to your customers.

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

[](#installation)

The preferred way to install this extension is through [composer](http://getcomposer.org/download/).

Either run

```
composer require karster/mozify:"*"
```

or add

```
"karster/mozify": "*"

```

to the require section of your composer.json.

Usage
-----

[](#usage)

```
use karster\image\Mozify;

$mozify = new Mozify();
$result = $mozify->setImageSrc('path/to/image.jpg')
        ->setSearchWindow(10)
        ->setColorDepth(8)
        ->setTest(true)
        ->generate();

echo $result;
```

To change image dimensions set width or height. Second attribute will calculate from image ratio.

```
use karster\image\Mozify;

$mozify = new Mozify();
$result = $mozify->setImageSrc('path/to/image.jpg')
        ->setSearchWindow(10)
        ->setColorDepth(8)
        ->setWidth(500)
        //->setHeight(300)
        ->generate();

echo $result;
```

[![Safari](docs/safari.jpg)](docs/safari.jpg)

[![Coffee](docs/coffee.jpg)](docs/coffee.jpg)

Tests
-----

[](#tests)

```
./vendor/bin/phpunit -c phpunit.xml

```

Contribution
------------

[](#contribution)

Have an idea? Found a bug? See [how to contribute](CONTRIBUTING.md).

License
-------

[](#license)

MIT see [LICENSE](LICENSE.md) for the full license text.

###  Health Score

30

—

LowBetter than 64% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity24

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity55

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 ~1177 days

Total

2

Last Release

1372d ago

PHP version history (2 changes)1.0PHP ^7.0

1.1PHP &gt;=7.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/9861d8483a334bd54621b1829f2b55620417df08080a0fe29426659eacb9385b?d=identicon)[karster](/maintainers/karster)

---

Top Contributors

[![karster](https://avatars.githubusercontent.com/u/17579408?v=4)](https://github.com/karster "karster (14 commits)")

---

Tags

emailimagemosaicmosaic-images

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/karster-mozify/health.svg)

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

###  Alternatives

[minishlink/web-push

Web Push library for PHP

1.9k12.0M53](/packages/minishlink-web-push)[laravel-notification-channels/twilio

Provides Twilio notification channel for Laravel

2587.7M12](/packages/laravel-notification-channels-twilio)[spatie/url-signer

Generate a url with an expiration date and signature to prevent unauthorized access

4422.3M16](/packages/spatie-url-signer)[mattketmo/email-checker

Throwaway email detection library

2742.0M5](/packages/mattketmo-email-checker)[laravel-notification-channels/discord

Laravel notification driver for Discord.

2371.3M11](/packages/laravel-notification-channels-discord)[eduardokum/laravel-mail-auto-embed

Library for embed images in emails automatically

1702.0M5](/packages/eduardokum-laravel-mail-auto-embed)

PHPackages © 2026

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