PHPackages                             netlogix/nlxwebpoptimizer - 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. netlogix/nlxwebpoptimizer

ActiveShopware-plugin

netlogix/nlxwebpoptimizer
=========================

Plugin to automatically generate webp variants of the media assets

v1.1.1(2y ago)01.5kproprietaryPHPPHP ^7.4||^8.0CI passing

Since Sep 14Pushed 2y ago2 watchersCompare

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

READMEChangelogDependencies (5)Versions (6)Used By (0)

nlxWebPOptimizer
================

[](#nlxwebpoptimizer)

About nlxWebPOptimizer
----------------------

[](#about-nlxwebpoptimizer)

Plugin to automatically generate webp variants of the media assets

Usage
-----

[](#usage)

Generate webp variants for existing media with this command:

```
bin/console nlx:webpoptimizer:optimize

```

Add following snippet to media/.htaccess to serve webp images

```

RewriteEngine on

# Check if browser support WebP images
# Check if WebP replacement image exists
# Serve WebP image instead
RewriteCond %{HTTP_ACCEPT} image/webp
RewriteCond %{DOCUMENT_ROOT}/media/$0.webp -f
RewriteRule (.+)\.(jpe?g|png)$ $0.webp [T=image/webp,E=accept:1]

# Tell proxy to cache this file based on "accept" header
RewriteRule (.+)\.(jpe?g|png|webp)$ - [env=POTENTIAL_WEBP_IMAGE:1]
Header merge vary accept env=POTENTIAL_WEBP_IMAGE

RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ ../shopware.php?controller=Media&action=fallback [PT,L,QSA]

```

Add following snippet to root .htaccess to ensure proper MIME type for webp

```
# Ensure proper MIME type for webp

    AddType image/webp webp

```

Running Tests
-------------

[](#running-tests)

### phpunit - functional

[](#phpunit---functional)

```
Not working at the moment because phpunit is functional testing and there is no running shopware installation.

$ vendor/bin/phpunit

```

### phpunit - unit

[](#phpunit---unit)

```
$ vendor/bin/phpunit -c phpunit_unit.xml.dist

```

### phpspec

[](#phpspec)

```
$ vendor/bin/phpspec-standalone.php7.2.phar

```

License
-------

[](#license)

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

###  Health Score

29

—

LowBetter than 60% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity17

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity55

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 80% 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 ~139 days

Total

3

Last Release

1053d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/667b5107f4c2ea180baa00166c2ee3f2a1b412ce22768d6e81bb09323d1c7fe0?d=identicon)[netlogix](/maintainers/netlogix)

![](https://www.gravatar.com/avatar/24edefe3f5deaace871051bc6206adf207954d2bf5f45b8ca56b096287b85597?d=identicon)[nlx-vladi](/maintainers/nlx-vladi)

---

Top Contributors

[![TheBreaken](https://avatars.githubusercontent.com/u/22234380?v=4)](https://github.com/TheBreaken "TheBreaken (16 commits)")[![Jnoack331](https://avatars.githubusercontent.com/u/17640771?v=4)](https://github.com/Jnoack331 "Jnoack331 (2 commits)")[![Scarbous](https://avatars.githubusercontent.com/u/1202318?v=4)](https://github.com/Scarbous "Scarbous (1 commits)")[![sd-lueckel](https://avatars.githubusercontent.com/u/16880583?v=4)](https://github.com/sd-lueckel "sd-lueckel (1 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/netlogix-nlxwebpoptimizer/health.svg)

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

PHPackages © 2026

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