Download the PHP package jackillll/laravel-filament-client-upload-cos without Composer
On this page you can find all versions of the php package jackillll/laravel-filament-client-upload-cos. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Please rate this library. Is it a good library?
Informations about the package laravel-filament-client-upload-cos
Laravel Filament Client Upload COS
一个为 Laravel Filament 提供腾讯云 COS 客户端直传功能的扩展包。
特性
- 🚀 客户端直传到腾讯云 COS,减轻服务器负担
- 🔒 安全的签名机制,保护您的密钥
- 📱 支持进度显示和错误处理
- 🎨 与 Filament 完美集成
- ⚡ 简单易用的 API
安装
使用 Composer 安装扩展包:
发布配置文件:
配置
在 .env 文件中添加腾讯云 COS 配置:
使用方法
基本用法
在 Filament 表单中使用 COS 直传:
自定义上传路径
配置上传选项
上传成功回调
使用自定义组件
如果您需要更多控制,可以使用扩展包提供的自定义组件:
配置选项
在 config/filament-cos-upload.php 中可以配置以下选项:
工作原理
- 用户选择文件后,前端 JavaScript 向服务器请求上传签名
- 服务器生成安全的上传签名并返回给前端
- 前端使用签名直接上传文件到腾讯云 COS
- 上传完成后,前端通知服务器更新文件信息
安全性
- 使用临时签名,避免在前端暴露密钥
- 支持文件类型和大小限制
- 签名有时效性,防止滥用
要求
- PHP 8.1+
- Laravel 10.0+ 或 11.0+
- Filament 3.0+
许可证
MIT License
贡献
欢迎提交 Issue 和 Pull Request!
支持
如果您在使用过程中遇到问题,请:
- 查看文档和示例
- 搜索已有的 Issues
- 创建新的 Issue 并提供详细信息
All versions of laravel-filament-client-upload-cos with dependencies
PHP Build Version
Package Version
Requires
php Version
^8.1
filament/filament Version >=3.0
illuminate/support Version >=10.0
guzzlehttp/guzzle Version >=7.0
filament/filament Version >=3.0
illuminate/support Version >=10.0
guzzlehttp/guzzle Version >=7.0
The package jackillll/laravel-filament-client-upload-cos contains the following files
Loading the files please wait ...