tbcd / file-messenger
1.0.0
2023-04-02 21:12 UTC
Requires
- php: >=8.1
- league/flysystem: ^3.0
- league/flysystem-ftp: ^3.0
- league/flysystem-sftp-v3: ^3.0
- symfony/messenger: ^6.0
Requires (Dev)
- phpunit/phpunit: ^10.0
This package is auto-updated.
Last update: 2024-09-05 01:32:36 UTC
README
此包是symfony/messenger组件的扩展,提供了使用league/flysystem组件的文件传输
安装
composer require tbcd/file-messenger
使用
此传输可以使用league/flysystem的任何适配器进行配置。
目前只实现了sftp、ftp和本地适配器
在messenger配置文件中按预期配置传输
# config/packages/messenger.yaml
framework:
messenger:
transports:
# https://symfony.com.cn/doc/current/messenger.html#transport-configuration
sftp:
dsn: 'sftp://foo:bar@localhost:22/rootPath'
ftp:
dsn: 'ftp://foo:bar@localhost:21/rootPath'
local:
dsn: 'local://./rootPath'