PHPackages                             yassine-as/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. [Image &amp; Media](/categories/media)
4. /
5. yassine-as/laravel-webp

ActiveLibrary[Image &amp; Media](/categories/media)

yassine-as/laravel-webp
=======================

Laravel package for WebP image conversion and optimization

101PHP

Since May 27Pushed 1y agoCompare

[ Source](https://github.com/Asyassin10/laravel-webp)[ Packagist](https://packagist.org/packages/yassine-as/laravel-webp)[ RSS](/packages/yassine-as-laravel-webp/feed)WikiDiscussions main Synced today

READMEChangelogDependenciesVersions (1)Used By (0)

Laravel WebP Package
====================

[](#laravel-webp-package)

A Laravel package for WebP image conversion and optimization.

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

[](#installation)

```
composer require yassineas/laravel-webp
```

Configuration
-------------

[](#configuration)

Publish the configuration file:

```
php artisan vendor:publish --provider="YassineAS\LaravelWebp\Providers\WebpServiceProvider"
```

Usage
-----

[](#usage)

### Basic Usage

[](#basic-usage)

```
use YassineAS\LaravelWebp\Facades\Webp;

// Convert image to WebP
$webpPath = Webp::convert('/path/to/image.jpg');

// Convert with quality setting
$webpPath = Webp::convert('/path/to/image.jpg', 80);

// Convert and resize
$webpPath = Webp::convert('/path/to/image.jpg', 80, 800, 600);
```

### Artisan Command

[](#artisan-command)

```
# Convert single image
php artisan webp:convert /path/to/image.jpg

# Convert all images in directory
php artisan webp:convert-directory /path/to/images/
```

###  Health Score

16

—

LowBetter than 4% of packages

Maintenance35

Infrequent updates — may be unmaintained

Popularity3

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity15

Early-stage or recently created project

 Bus Factor1

Top contributor holds 50% 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://avatars.githubusercontent.com/u/79702243?v=4)[Yassine Ait sidi brahim](/maintainers/Asyassin10)[@Asyassin10](https://github.com/Asyassin10)

---

Top Contributors

[![Asyassin10](https://avatars.githubusercontent.com/u/79702243?v=4)](https://github.com/Asyassin10 "Asyassin10 (4 commits)")[![YassineBti](https://avatars.githubusercontent.com/u/153202148?v=4)](https://github.com/YassineBti "YassineBti (4 commits)")

### Embed Badge

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

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

###  Alternatives

[goat1000/svggraph

Generates SVG graphs

135911.1k3](/packages/goat1000-svggraph)[gravatarphp/gravatar

Gravatar URL builder which is most commonly called as a Gravatar library

16653.6k2](/packages/gravatarphp-gravatar)

PHPackages © 2026

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