PHPackages                             slexx/laravel-webp - 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. [Templating &amp; Views](/categories/templating)
4. /
5. slexx/laravel-webp

ActiveLibrary[Templating &amp; Views](/categories/templating)

slexx/laravel-webp
==================

Detect webp support in laravel framework

104.8k↑14.3%4[1 issues](https://github.com/slexx1234/laravel-webp/issues)[1 PRs](https://github.com/slexx1234/laravel-webp/pulls)PHP

Since Dec 29Pushed 7y ago1 watchersCompare

[ Source](https://github.com/slexx1234/laravel-webp)[ Packagist](https://packagist.org/packages/slexx/laravel-webp)[ RSS](/packages/slexx-laravel-webp/feed)WikiDiscussions master Synced 3d ago

READMEChangelogDependenciesVersions (1)Used By (0)

laravel-webp
============

[](#laravel-webp)

Install
-------

[](#install)

```
$ composer require slexx/laravel-webp
```

In Laravel 5.5 the service provider will automatically get registered. In older versions of the framework just add the service provider in config/app.php file:

```
'providers' => [
    // ...
    Slexx\LaravelWebp\LaravelWebpServiceProvider::class,
];
```

Add `@webpJS` directive to the `` tag

```

    @webpJS

```

Usage
-----

[](#usage)

Usage in blade

```
@webp

@else

@endwebp
```

or in js, php

```
if (supportsWebp()) {
    // Does support!
} else {
    // Does not support!
}
```

or in css

```
html.webp {
    /* Does support! */
}

html.no-webp {
    /* Does not support! */
}
```

###  Health Score

27

—

LowBetter than 47% of packages

Maintenance18

Infrequent updates — may be unmaintained

Popularity30

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity39

Early-stage or recently created project

 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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/d76b1d60ad85fc4479c1a04bf6816cbc12ff9a1c9748ff56f5771c0dac46d042?d=identicon)[slexx](/maintainers/slexx)

---

Top Contributors

[![slexx1234](https://avatars.githubusercontent.com/u/23412450?v=4)](https://github.com/slexx1234 "slexx1234 (2 commits)")

---

Tags

bladelaravelwebp

### Embed Badge

![Health badge](/badges/slexx-laravel-webp/health.svg)

```
[![Health](https://phpackages.com/badges/slexx-laravel-webp/health.svg)](https://phpackages.com/packages/slexx-laravel-webp)
```

###  Alternatives

[limenius/react-bundle

Client and Server-side react rendering in a Symfony Bundle

3851.2M](/packages/limenius-react-bundle)[ktquez/laravel-tinymce

TinyMCE editor for Laravel and Lumen Framework

2525.4k](/packages/ktquez-laravel-tinymce)[jelix/wikirenderer

WikiRenderer is a library to generate HTML or anything else from wiki content.

1712.3k1](/packages/jelix-wikirenderer)[webkinder/sproutset

A Composer package for handling responsive images in Roots Bedrock + Sage + Blade projects.

282.2k](/packages/webkinder-sproutset)

PHPackages © 2026

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