PHPackages                             lloricode/spatie-image-optimizer-health-check - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. lloricode/spatie-image-optimizer-health-check

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

lloricode/spatie-image-optimizer-health-check
=============================================

These checks are where you can check if optimizer is installed on your server.

v3.0.1(1w ago)243.0k—2.8%[1 PRs](https://github.com/lloricode/spatie-image-optimizer-health-check/pulls)MITPHPPHP ^8.3CI passing

Since Jan 29Pushed 1w ago1 watchersCompare

[ Source](https://github.com/lloricode/spatie-image-optimizer-health-check)[ Packagist](https://packagist.org/packages/lloricode/spatie-image-optimizer-health-check)[ Docs](https://github.com/lloricode/spatie-image-optimizer-health-check)[ Fund](https://www.paypal.com/donate?hosted_button_id=V8PYXUNG6QP44)[ Patreon](https://www.patreon.com/lloricode)[ RSS](/packages/lloricode-spatie-image-optimizer-health-check/feed)WikiDiscussions main Synced 4d ago

READMEChangelog (9)Dependencies (39)Versions (14)Used By (0)

Spatie Image Optimizer Health Check
===================================

[](#spatie-image-optimizer-health-check)

[![Latest Version on Packagist](https://camo.githubusercontent.com/4fb4186045326594d9c5dc467aeb6d894e795fd03f69d57192096274a4c057d3/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6c6c6f7269636f64652f7370617469652d696d6167652d6f7074696d697a65722d6865616c74682d636865636b2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/lloricode/spatie-image-optimizer-health-check)[![GitHub Tests Action Status](https://camo.githubusercontent.com/108734a9304e45829693832e036407a32c409244c10c946643cea861e94d12cd/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f6c6c6f7269636f64652f7370617469652d696d6167652d6f7074696d697a65722d6865616c74682d636865636b2f72756e2d74657374732e796d6c3f6272616e63683d6d61696e266c6162656c3d7465737473267374796c653d666c61742d737175617265)](https://github.com/lloricode/spatie-image-optimizer-health-check/actions?query=workflow%3Arun-tests+branch%3Amain)[![GitHub Code Style Action Status](https://camo.githubusercontent.com/b65514fa272d044e06e1d29442489be856a2ca1299bef5397de9ec616b6402a4/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f6c6c6f7269636f64652f7370617469652d696d6167652d6f7074696d697a65722d6865616c74682d636865636b2f6669782d7068702d636f64652d7374796c652d6973737565732e796d6c3f6272616e63683d6d61696e266c6162656c3d636f64652532307374796c65267374796c653d666c61742d737175617265)](https://github.com/lloricode/spatie-image-optimizer-health-check/actions?query=workflow%3A%22Fix+PHP+code+style+issues%22+branch%3Amain)[![Total Downloads](https://camo.githubusercontent.com/87dabfcf5df3fd09bb0e96cf513dbfe6d9fa0cf1dc12725257cde7ea0b73e9f5/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6c6c6f7269636f64652f7370617469652d696d6167652d6f7074696d697a65722d6865616c74682d636865636b2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/lloricode/spatie-image-optimizer-health-check)[![codecov](https://camo.githubusercontent.com/8c6296a0aef87b1cf97346ef56ced35b964e1f17df8733b302c1e7c3f0e72caa/68747470733a2f2f636f6465636f762e696f2f67682f6c6c6f7269636f64652f7370617469652d696d6167652d6f7074696d697a65722d6865616c74682d636865636b2f67726170682f62616467652e7376673f746f6b656e3d4a475445574356464b52)](https://codecov.io/gh/lloricode/spatie-image-optimizer-health-check)

When using [laravel-medialibrary](https://github.com/spatie/laravel-medialibrary) it uses [image-optimizer](https://github.com/spatie/image-optimizer) under the hood, and probably this would not work if optimizer tools is not installed on you server. These checks are where you can check if optimizer is installed on your server.

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

[](#installation)

You can install the package via composer:

```
composer require lloricode/spatie-image-optimizer-health-check
```

Usage
-----

[](#usage)

```
use Lloricode\SpatieImageOptimizerHealthCheck\ImageOptimizerCheck;
use Spatie\Health\Facades\Health;

# all optimizer
Health::checks([
    ImageOptimizerCheck::new(),
]);

# specific optimizer
use Lloricode\SpatieImageOptimizerHealthCheck\Optimizer;

Health::checks([
    ImageOptimizerCheck::new()
        ->addChecks(Optimizer::JPEGOPTIM),
]);

# multiple
Health::checks([
    ImageOptimizerCheck::new()
        ->addChecks([
            Optimizer::JPEGOPTIM,
            Optimizer::OPTIPNG,
            Optimizer::PNGQUANT,
            Optimizer::SVGO,
            Optimizer::GIFSICLE,
            Optimizer::WEBP,
            Optimizer::AVIFENC,
        ]),
]);
```

Testing
-------

[](#testing)

```
composer test
```

Changelog
---------

[](#changelog)

Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) for details.

Security Vulnerabilities
------------------------

[](#security-vulnerabilities)

Please review [our security policy](../../security/policy) on how to report security vulnerabilities.

Credits
-------

[](#credits)

- [Lloric Mayuga Garcia](https://github.com/lloricode)
- [All Contributors](../../contributors)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

56

—

FairBetter than 97% of packages

Maintenance98

Actively maintained with recent releases

Popularity31

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity68

Established project with proven stability

 Bus Factor1

Top contributor holds 64% 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 ~124 days

Recently: every ~208 days

Total

11

Last Release

13d ago

Major Versions

v1.0.3 → v2.0.02023-10-11

v2.0.5 → v3.0.02026-06-22

PHP version history (4 changes)1.0.0PHP ^8.0

v2.0.0PHP ^8.1

v2.0.1PHP ^8.2

v2.0.5PHP ^8.3

### Community

Maintainers

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

---

Top Contributors

[![lloricode](https://avatars.githubusercontent.com/u/8251344?v=4)](https://github.com/lloricode "lloricode (80 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (30 commits)")[![github-actions[bot]](https://avatars.githubusercontent.com/in/15368?v=4)](https://github.com/github-actions[bot] "github-actions[bot] (15 commits)")

---

Tags

hacktoberfestlaravelmedia-libraryoptimizerphpspatiespatielaravelimage-optimizerhealth checklloricode

###  Code Quality

TestsPest

Static AnalysisPHPStan

Code StyleLaravel Pint

### Embed Badge

![Health badge](/badges/lloricode-spatie-image-optimizer-health-check/health.svg)

```
[![Health](https://phpackages.com/badges/lloricode-spatie-image-optimizer-health-check/health.svg)](https://phpackages.com/packages/lloricode-spatie-image-optimizer-health-check)
```

###  Alternatives

[spatie/laravel-permission

Permission handling for Laravel 12 and up

12.9k102.4M1.4k](/packages/spatie-laravel-permission)[spatie/laravel-pdf

Create PDFs in Laravel apps

1.0k4.8M47](/packages/spatie-laravel-pdf)[spatie/laravel-data

Create unified resources and data transfer objects

1.8k35.2M977](/packages/spatie-laravel-data)[codewithdennis/filament-select-tree

The multi-level select field enables you to make single selections from a predefined list of options that are organized into multiple levels or depths.

329530.5k29](/packages/codewithdennis-filament-select-tree)[spatie/laravel-passkeys

Use passkeys in your Laravel app

471890.7k39](/packages/spatie-laravel-passkeys)[rawilk/profile-filament-plugin

Profile &amp; MFA starter kit for filament.

3914.6k](/packages/rawilk-profile-filament-plugin)

PHPackages © 2026

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