PHPackages                             gmsarates/php-webp-converter - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. gmsarates/php-webp-converter

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

gmsarates/php-webp-converter
============================

This is a PHP CLI tool to convert all files in a specific folder to webp format

166PHP

Since Jul 11Pushed 1y ago1 watchersCompare

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

READMEChangelogDependenciesVersions (1)Used By (0)

PHP WebP Converter
==================

[](#php-webp-converter)

\[PT\] Esta é uma ferramenta CLI PHP para converter todos os arquivos em uma pasta específica para o formato webp

\[EN\] This is a PHP CLI tool to convert all files in a specific folder to webp format

Install
-------

[](#install)

Using composer:

```
  composer require gmsarates/php-webp-converter
```

Usage
-----

[](#usage)

```
cd php-webp-converter/
```

```
php webp.php
```

Optional parameters
-------------------

[](#optional-parameters)

ParamInfo`--path` or `-P`Specify the path to the images`--yes` or `-Y`Skip path checking`--delete` or `-D`Skip verification to delete original filesExample:

```
php webp.php --path=/var/www/html/project/images -Y -D
```

**Warning:** The `--delete` (or `-D`) parameter is dangerous! It will delete the original files. Use with caution.

Results
-------

[](#results)

[![ex1](https://private-user-images.githubusercontent.com/30908688/295447512-9995d6ae-ff80-4db4-a550-5a2cf03b8e90.jpeg?jwt=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3NzU1MTY3NzUsIm5iZiI6MTc3NTUxNjQ3NSwicGF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VNpZ25hdHVyZT0wZDcwMTZlZTc1NDE4N2Y0ZWFiNWU2YWU0M2VlNWE2N2JjNmI3YjNkNGE3NGIwNWM2YWY4MTlhZTFlMTI2NTg5JlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCJ9.kUK48iTWTXAOCr1XJCaWSJ2buSjlkHAXhAmIjec8N3o)

###  Health Score

16

—

LowBetter than 5% of packages

Maintenance27

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity18

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/7fb349040aa2a2346e9b3f08da421be571823af7af1b3327a702fe5c924898ba?d=identicon)[gmsarates](/maintainers/gmsarates)

---

Top Contributors

[![gmsarates](https://avatars.githubusercontent.com/u/30908688?v=4)](https://github.com/gmsarates "gmsarates (10 commits)")

### Embed Badge

![Health badge](/badges/gmsarates-php-webp-converter/health.svg)

```
[![Health](https://phpackages.com/badges/gmsarates-php-webp-converter/health.svg)](https://phpackages.com/packages/gmsarates-php-webp-converter)
```

PHPackages © 2026

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