nickwelsh/fennel
最新稳定版本:v0.1.1-beta
Composer 安装命令:
composer require nickwelsh/fennel
包简介
A (nearly) feature complete, drop-in replacement for Cloudflare Images
关键字:
README 文档
README
A (nearly) feature complete, drop-in replacement for Cloudflare Images
Installation
You can install the package via composer:
composer require nickwelsh/fennel
You can publish the config file with:
php artisan vendor:publish --tag="fennel-config"
Optionally, you can publish the views using
php artisan vendor:publish --tag="fennel-views"
Usage
Use as a blade component:
<x-fennel-image src="beach.jpg" width="500" :format="\nickwelsh\Fennel\Enums\ImageFormat::AVIF" />
This will generate the following HTML:
<img src="/images/beach.jpg/width=500,format=avif" alt="" width="500">
Use the Fennel facade to generate a URL:
Fennel::fromPath('beach.jpg')->width(500)->format(ImageFormat::AVIF)->getUrl();
Testing
composer test
Changelog
Please see CHANGELOG for more information on what has changed recently.
Credits
License
The MIT License (MIT). Please see License File for more information.
统计信息
- 总下载量: 0
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2025-04-16