承接 satoripophq/azuresdk 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

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

satoripophq/azuresdk

Composer 安装命令:

composer require satoripophq/azuresdk

包简介

Microsoft Azure SDK for PHP

关键字:

README 文档

README

Version 1.0

Adaptation for Composer and PSR-4 of:

This project provides a set of PHP client libraries that make it easy to access Windows Azure tables, blobs, queues, service runtime and service management APIs.

http://www.satoripop.com

Install

$ composer require satoripophq/azuresdk
"require": {
    "satoripophq/AzureSDK": "1.3"
    }

Usage

use SatoripopAzure\AzureBlob as _AzureBlob;

...
$config['azureStorageName'] = "xxxxxx";
$config['azureAccountKey']  = "xxxxxx";
$config['uploadContainer']  = "mycontainer";

$uploadAzure = new _AzureBlob($config);
$result = $uploadAzure->createBlob($file,$blob_name);
echo $result;
$uploadAzure->downloadBlob($blob_name);
...

AzureBlob Class

createCont

Creates a new container in the given storage account.

  • @param string => $container : name

createBlob

Creates a new block blob or updates the content of an existing block blob. Updating an existing block blob overwrites any existing metadata on the blob. Partial updates are not supported with createBlockBlob; the content of the existing blob is overwritten with the content of the new blob. To perform a partial update of the ontent of a block blob, use the createBlockList method.

  • @param string => $container : name of the container
  • @param string => $blob : name of the blob
  • @param string => $content : content of the blob

deleteBlob

Deletes a blob or blob snapshot.

Note that if the snapshot entry is specified in the $options then only this blob snapshot is deleted. To delete all blob snapshots, do not set Snapshot and just set getDeleteSnaphotsOnly to true.

  • @param string => $blob : name of the blob
  • @param string => $container : name of the container

copyBlob

Copies a source blob to a destination blob within the same storage account.

  • @param string => $destinationContainer : name of container
  • @param string => $destinationBlob : name of blob
  • @param string => $sourceContainer : name of container
  • @param string => $sourceBlob : name of blob

listBlobs

Lists all of the blobs in the given container.

  • @param string => $container : name

downloadBlob

Reads or downloads a blob from the system, including its metadata and properties.

  • @param string => $container : name of the container
  • @param string => $blob : name of the blob

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2018-06-27

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固