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.

v2.0.5(1mo ago)239.4k—5.6%MITPHPPHP ^8.3CI passing

Since Jan 29Pushed 1mo 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 1mo ago

READMEChangelog (7)Dependencies (26)Versions (11)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,
        ]),
]);
```

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

53

—

FairBetter than 97% of packages

Maintenance88

Actively maintained with recent releases

Popularity31

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity67

Established project with proven stability

 Bus Factor1

Top contributor holds 63.2% 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 ~143 days

Recently: every ~185 days

Total

9

Last Release

59d ago

Major Versions

v1.0.3 → v2.0.02023-10-11

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 (72 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (28 commits)")[![github-actions[bot]](https://avatars.githubusercontent.com/in/15368?v=4)](https://github.com/github-actions[bot] "github-actions[bot] (14 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-data

Create unified resources and data transfer objects

1.8k28.9M627](/packages/spatie-laravel-data)[spatie/laravel-livewire-wizard

Build wizards using Livewire

4061.0M4](/packages/spatie-laravel-livewire-wizard)[spatie/laravel-support-bubble

A non-intrusive support chat bubble that can be displayed on any page

391173.6k](/packages/spatie-laravel-support-bubble)[spatie/laravel-rdap

Perform RDAP queries in a Laravel app

72108.3k2](/packages/spatie-laravel-rdap)[worksome/exchange

Check Exchange Rates for any currency in Laravel.

123544.7k](/packages/worksome-exchange)[spatie/laravel-screenshot

Take screenshots of web pages in Laravel apps

7615.9k2](/packages/spatie-laravel-screenshot)

PHPackages © 2026

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