定制 akbaraditamasp/cloudpro-php 二次开发

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

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

akbaraditamasp/cloudpro-php

最新稳定版本:v1.0.7

Composer 安装命令:

composer require akbaraditamasp/cloudpro-php

包简介

PHP Library for CloudPRO Storage System

README 文档

README

This library is the abstraction of CloudPRO API for access from applications written with PHP.

Installation

composer require akbaraditamasp/cloudpro-php

Usage

Create Box

Before creating a box, make sure you have created and obtained an access key from the app.

$response = CloudPRO::begin()->useAppAccess("YOUR ACCESS KEY")->storeBox("Box Name");

Create Folder

Use the box token that you got when you made the box.

$response = CloudPRO::begin()->useBoxToken("BOX TOKEN")->storeFolder("FOLDER NAME", $options);

Store File

$response = CloudPRO::begin()->useBoxToken("BOX TOKEN")->storeFile("FILE NAME", "PATH", $options);

Show Node

If the node key is a folder, then you will get a response detailing the folder and its childrens. But if the node key is a file, then you will get a file url response.

$response = CloudPRO::begin()->useBoxToken("BOX TOKEN")->showNode("NODE KEY");

Rename Node

$response = CloudPRO::begin()->useBoxToken("BOX TOKEN")->renameNode("NODE KEY","NEW NAME");

Move Node

$response = CloudPRO::begin()->useBoxToken("BOX TOKEN")->moveNode("NODE KEY","PARENT KEY");

Copy Node

$response = CloudPRO::begin()->useBoxToken("BOX TOKEN")->copyNode("NODE KEY","PARENT KEY");

Delete Node

$response = CloudPRO::begin()->useBoxToken("BOX TOKEN")->deleteNode("NODE KEY");

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2023-05-10