定制 keboola/php-file-storage-utils 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

keboola/php-file-storage-utils

最新稳定版本:v0.2.7

Composer 安装命令:

composer require keboola/php-file-storage-utils

包简介

Set of helpers and abstractions above file storage providers

README 文档

README

PHP utils around Azure blob storage and Amazon S3

Installation

composer require keboola/php-file-storage-utils 

Usage

Azure Blob storage

Retry middleware

$blobClient = BlobRestProxy::createBlobService(...); $blobClient->pushMiddleware(Keboola\FileStorage\Abs\RetryMiddlewareFactory::create( (optional) RetryMiddlewareFactory::DEFAULT_NUMBER_OF_RETRIES, (optional) RetryMiddlewareFactory::DEFAULT_RETRY_INTERVAL, (optional) RetryMiddlewareFactory::EXPONENTIAL_INTERVAL_ACCUMULATION ));

Best practice

use ClientFactory to preset client and middlewares

\Keboola\FileStorage\Abs\ClientFactory::createClientFromConnectionString( string $connectionString, ?LoggerInterface $logger = null );

Development

Run tests with:

docker compose run --rm testsXX 

where XX is PHP version (81 - 83), e.g.:

docker compose run --rm tests81 

Resources Setup

Azure blob storage

export PHP_FS_UTILS_RG=testing-php-file-storage-utils 

Create a resource group:

az group create --name $PHP_FS_UTILS_RG --location "northeurope" 

Deploy the storage account

az group deployment create --resource-group $PHP_FS_UTILS_RG --template-file arm-template.json 

command will output ABS_ACCOUNT_NAME, ABS_ACCOUNT_KEY which has to be added to .env file

统计信息

  • 总下载量: 62.54k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 1
  • 依赖项目数: 8
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 15
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2026-01-04

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固