承接 dptsi/blob-repository 相关项目开发

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

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

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

  1. PHP 5.4 ++
  2. 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

GitHub 信息

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

其他信息

  • 授权协议: Unknown
  • 更新时间: 2024-09-26