divyeshz/asset-optimizer
最新稳定版本:v1.0.0
Composer 安装命令:
composer require divyeshz/asset-optimizer
包简介
A library for optimizing images, videos, and audio, with thumbnail creation and storage features.
README 文档
README
A PHP library for optimizing images, videos, and audio, with thumbnail creation and storage features. This library is designed to work seamlessly with Laravel and other PHP frameworks.
Features
- Optimize images with custom quality settings
- Optimize videos and resize them
- Optimize audio files
- Create thumbnails for images and videos
Installation
You can install this package via Composer.
-
Require the package:
composer require divyeshz/asset-optimizer
-
Publish the configuration file:
php artisan vendor:publish --provider="AssetOptimizer\AssetOptimizerServiceProvider"
Usage
use AssetOptimizer\AssetOptimizer; $assetOptimizer = new AssetOptimizer(); $assetOptimizer->optimizeImage('/path/to/your/image.jpg', '/path/to/your/destination/image.jpg');
统计信息
- 总下载量: 14
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: Unknown
- 更新时间: 2024-06-19