dptsi/blob-repository
最新稳定版本:v1.0.0
Composer 安装命令:
composer require dptsi/blob-repository
包简介
Upload Blob to repository ITS.
README 文档
README
Repository ini berisi library PHP yang digunakan untuk mengunggah file ke storage API ITS
Requirements
- PHP 5.4 ++
- guzzle
example is in test-upload.php
Instalation
add composer.json
"dptsi/blob-repository": "dev-master"
after require section add this
"repositories": [
{
"type": "vcs",
"url": "https://github.com/dptsi/blob-repository.git"
}
]
Usage
Instalation
<?php
require './vendor/autoload.php';
$blobUpload = new BlobRepository('SSO Provider', 'SSO Client ID', 'SSO Secret', 'Alamat Storage API (Kosong jika prod)');
Get File
$file = $blobUpload->getFile($file_id);
Store File
$file Upload = $blobUpload->storeFile($_FILES['fileToUpload']);
Delete File
$file Upload = $blobUpload->deleteFile($file_id);
Update File
$file Upload = $blobUpload->updateFile($_FILES['fileToUpload'], $file_id);
Methods
file_id()
file_name()
tag()
timestamp()
public_link()
To get responses from server access $file->response
统计信息
- 总下载量: 69
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: Unknown
- 更新时间: 2024-09-26