定制 luguoit/tencent-wrappers 二次开发

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

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

luguoit/tencent-wrappers

最新稳定版本:v1.0.7

Composer 安装命令:

composer require luguoit/tencent-wrappers

包简介

README 文档

README

composer require luguoit/tencent-wrappers

CMQ

$queue = new TencentCmqQueue(
    "x",
    "x",
    "https:cmq-use.public.tencenttdmq.com",
    "mdata-rawlog"
);

$messages = $queue->receiveMessages(5); 
$queue->deleteMessages($messages);

COS

/** @var CosClient $client */
$client = new  CosClient(
    "x",
    "x",
    "ap-beijing"
);

$list = $client->listObjects(['Bucket' => "mdata-rawlog-test-bj-1300994929"]);
print_r($list);

Flysystem COS


$client = new ExtendedFilesystem(
            new ExtendedCosAdapter(
                new CosClient($config["access_key"],$config["access_secret"],$config["region"]),
                $config["bucket"]
            )
);



$client->has("202212081440_000_6");
$client->put("t001.txt","111");
$a = $client->write("t002.txt","111");
$a = $client->writeStream("t_stream.txt",fopen("README.md","r"));
$a = $client->copy("t_stream.txt","t_stream2.txt");
$a = $client->delete( "t_stream2.txt");
$a = $client->read( "t001.txt");
print_r($a);

$fh = $client->readStream( "202212081440_000_6");
while (!feof($fh)) {
    print_r(fgets($fh));
}
 

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2022-12-21

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固