承接 yassine-as/laravel-webp 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

yassine-as/laravel-webp

Composer 安装命令:

composer require yassine-as/laravel-webp

包简介

Laravel package for WebP image conversion and optimization

README 文档

README

A Laravel package for WebP image conversion and optimization.

Installation

composer require yassineas/laravel-webp

Configuration

Publish the configuration file:

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

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

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

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

统计信息

  • 总下载量: 0
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 1
  • 点击次数: 1
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 1
  • Watchers: 0
  • Forks: 1
  • 开发语言: PHP

其他信息

  • 授权协议: Unknown
  • 更新时间: 2025-05-27