PHPackages                             alimi7372/webp-convertor - 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. alimi7372/webp-convertor

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

alimi7372/webp-convertor
========================

A utility Laravel package to convert images to WebP format

v1.1.2(9mo ago)0205MITPHPPHP &gt;=7.4

Since Oct 18Pushed 9mo ago1 watchersCompare

[ Source](https://github.com/Alimohammadi20/laravel-webp)[ Packagist](https://packagist.org/packages/alimi7372/webp-convertor)[ RSS](/packages/alimi7372-webp-convertor/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (2)Dependencies (4)Versions (14)Used By (0)

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

[](#laravel-webp-package)

This package allows you to convert images to WebP format and reduce their file size in your Laravel application.

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

[](#installation)

You can install the package via composer:

```
composer require yourname/laravel-webp
```

Usage
-----

[](#usage)

To convert an image to WebP format, use the following:

```
use Alimi7372\Webp\WebpService;

app('webp')->convert($imagePath, $outputPath);
```

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

[](#running-tests)

To run the tests for this package, simply use:

```
composer test
```

Facade Usage
------------

[](#facade-usage)

This package includes a Facade for easier usage. You can use the `WEBP::convert()` method to convert images to WebP format.

Example:

```
use Alimi7372\Webp\Facades\WebpFacade as WEBP;

WEBP::convert($imagePath, $outputPath, 75);
```

Helpers
-------

[](#helpers)

This package includes a helper function `convert_to_webp` to simplify the conversion of images to WebP format:

```
convert_to_webp($imagePath, $outputPath, 75);
```

###  Health Score

33

—

LowBetter than 74% of packages

Maintenance60

Regular maintenance activity

Popularity12

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity46

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.

###  Release Activity

Cadence

Every ~23 days

Recently: every ~64 days

Total

13

Last Release

286d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/85cf70e82e989a5453ff0c754d7f00cb67044cf89ab8ef162fae8865c200cd65?d=identicon)[Alimohammadi20](/maintainers/Alimohammadi20)

---

Top Contributors

[![Alimohammadi20](https://avatars.githubusercontent.com/u/74608056?v=4)](https://github.com/Alimohammadi20 "Alimohammadi20 (11 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/alimi7372-webp-convertor/health.svg)

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

###  Alternatives

[intervention/image-laravel

Laravel Integration of Intervention Image

1496.5M100](/packages/intervention-image-laravel)[bkwld/croppa

Image thumbnail creation through specially formatted URLs for Laravel

510496.0k22](/packages/bkwld-croppa)[devfactory/imagecache

Laravel package for generating thumbnails of images and caching them in your public files folder.

1620.3k](/packages/devfactory-imagecache)[spatie/laravel-og-image

Generate OG images for your Laravel app

305.2k](/packages/spatie-laravel-og-image)[freearhey/laravel-face-detection

A Laravel Package for Face Detection and Cropping in Images.

392.2k](/packages/freearhey-laravel-face-detection)[flowframe/laravel-drift

128.7k](/packages/flowframe-laravel-drift)

PHPackages © 2026

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