定制 easmith/selectel-storage 二次开发

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

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

easmith/selectel-storage

最新稳定版本:1.0.3

Composer 安装命令:

composer require easmith/selectel-storage

包简介

Selectel Storage API php wrapper

README 文档

README

composer.json

"require": { "easmith/selectel-storage": "~1.0", }
<?php require_once("vendor/autoload.php"); $selectelStorage = new SelectelStorage("User", "Pass");

Create Container

$container = $selectelStorage->createContainer('selectel', array("X-Container-Meta-Type: public")); // get container info $container->getInfo()

Containers list

$containerList = $selectelStorage->listContainers();

Create directory

$container->createDirectory('php/test')

List

$dirList = $container->listFiles($limit = 10000, $marker = null, $prefix = null, $path = ""); // files $fileList = $container->listFiles($limit = 10000, $marker = null, $prefix = null, $path = 'php/');

Put File

$res = $container->putFile(__FILE__, 'example.php',["Content-Type: text/html"]);

File info

$fileInfo = $container->getFileInfo('example.php');

Get file

$file = $container->getFile($fileList[0]);

Copy file

$copyRes = $container->copy('example.php', 'php/test/Examples_copy.php5');

Delete

$deleteRes = $container->delete('example.php');

统计信息

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

GitHub 信息

  • Stars: 45
  • Watchers: 9
  • Forks: 18
  • 开发语言: PHP

其他信息

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

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固