farit-slv/selectel-flysystem-bundle
Composer 安装命令:
composer require farit-slv/selectel-flysystem-bundle
包简介
Bundle for selectel's api
README 文档
README
Bundle implements Selectel adapter for flysystem. Designed primarily for those services that want to use the flysystem abstraction to access Selectel cloud storage.
Installation
The bundle is installed with composer and follows the standard structure, so it is installed automatically on symfony >= 4.2
-
Add the repository to project
composer.json:"repositories": [ { "type": "git", "url": "https://github.com/crtweb/selectel-flysystem-bundle" } ]
-
Add the bundle package to the project:
$ composer require creative/selectel-flysystem-bundle
-
Add the bundle package to the project:
# app/config/packages/creative_selectel.yaml creative_selectel: account_id: 123123 client_id: 123123_prod client_password: prod_password container: prod_container
-
Add selectel adapter to flysystem:
# app/config/packages/oneup_flysystem.yaml services: League\Flysystem\FilesystemInterface: alias: League\Flysystem\Filesystem oneup_flysystem: adapters: default_adapter: local: directory: '%kernel.cache_dir%/flysystem' selectel.flysystem_adapter: custom: service: creative_selectel.adapter.adapter filesystems: default_filesystem: adapter: selectel.flysystem_adapter alias: League\Flysystem\Filesystem
Configuration
Available bundle options:
-
account_id- Selectel account identifier -
client_id- Selectel user ID, on whose behalf the storage will be accessed -
client_password- user password -
container- the container in which the files will be stored
Use in a local environment
Never use the production container for local development or for running tests. You should either enter the coordinates of the test container:
# app/config/packages/dev/creative_selectel.yaml для локальной разработки # app/config/packages/test/creative_selectel.yaml для тестов creative_selectel: account_id: 123123 client_id: 123123_test client_password: test_password container: test_container
Or use the flysystem adapter for the local filesystem:
# app/config/packages/dev/oneup_flysystem.yaml для локальной разработки # app/config/packages/test/oneup_flysystem.yaml для тестов services: League\Flysystem\FilesystemInterface: alias: League\Flysystem\Filesystem oneup_flysystem: adapters: default_adapter: local: directory: '%kernel.cache_dir%/flysystem' filesystems: default_filesystem: adapter: default_adapter alias: League\Flysystem\Filesystem
farit-slv/selectel-flysystem-bundle 适用场景与选型建议
farit-slv/selectel-flysystem-bundle 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 123 次下载、GitHub Stars 达 0, 最近一次更新时间为 2021 年 07 月 05 日, 在 PHP 生态内属于活跃度较高的组件。
我们在过去多个企业项目中使用过 farit-slv/selectel-flysystem-bundle 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 farit-slv/selectel-flysystem-bundle 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
统计信息
- 总下载量: 123
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2021-07-05