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↑20%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 2w 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

26

—

LowBetter than 40% of packages

Maintenance18

Infrequent updates — may be unmaintained

Popularity28

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity40

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.

### 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

3841.2M](/packages/limenius-react-bundle)[pdewit/nova-external-url

An external URL Laravel Nova field.

30383.2k](/packages/pdewit-nova-external-url)[wbrowar/guide

A CMS Guide for Craft CMS.

6154.7k1](/packages/wbrowar-guide)

PHPackages © 2026

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