tourze/flysystem-bundle
最新稳定版本:0.0.1
Composer 安装命令:
composer require tourze/flysystem-bundle
包简介
README 文档
README
A Symfony bundle providing Flysystem filesystem abstraction with console commands for file management.
Installation
composer require tourze/flysystem-bundle
Commands
flysystem:list
List files and directories in remote storage.
# List root directory php bin/console flysystem:list # List specific path php bin/console flysystem:list uploads/images # List recursively php bin/console flysystem:list uploads -r # Long format with size and modification time php bin/console flysystem:list uploads -l # Combine options php bin/console flysystem:list uploads -rl
flysystem:upload
Upload local file or directory to remote storage.
# Upload a single file php bin/console flysystem:upload /path/to/file.txt # Upload to specific destination php bin/console flysystem:upload /path/to/file.txt remote/path # Upload directory php bin/console flysystem:upload /path/to/directory # Overwrite existing files php bin/console flysystem:upload /path/to/file.txt -o # Dry run (preview without uploading) php bin/console flysystem:upload /path/to/directory --dry-run # Progress bar only (suppress per-file output) php bin/console flysystem:upload /path/to/directory -p
flysystem:delete
Delete all files and optionally directories in a specified path recursively.
# Delete files (with confirmation) php bin/console flysystem:delete uploads/temp # Force delete without confirmation php bin/console flysystem:delete uploads/temp -f # Dry run (preview without deleting) php bin/console flysystem:delete uploads/temp --dry-run # Include directories php bin/console flysystem:delete uploads/temp -d
Configuration
The bundle uses a default local filesystem adapter. You can customize the filesystem by implementing FilesystemFactoryInterface.
License
MIT
统计信息
- 总下载量: 91
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 1
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2025-12-20