siestacat/upload-api-client 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

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

siestacat/upload-api-client

最新稳定版本:1.0.3

Composer 安装命令:

composer require siestacat/upload-api-client

包简介

Api client for php-upload-api symfony project

README 文档

README

Client of https://github.com/SiestaCat/php-upload-api app

Install:

composer require siestacat/upload-api-client

Usage:

use Siestacat\PhpUploadApiClient\Client;

$client = new Client('http://localhost/api', 'changeme');

$upload_token = $client->request();

//<<Here the client upload the files from browser>>

//Get the uploaded files:

// Siestacat\PhpUploadApiClient\File[]
$files = $client->getFiles($upload_token);

//Download single file. Get the tmp path of downloaded file:

$downloaded_file = $client->download($upload_token, $file[0]->hash);

Tests:

git clone https://github.com/SiestaCat/php-upload-api-client.git
cd php-upload-api-client
composer install
composer run-script test

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: Apache-2.0
  • 更新时间: 2024-01-02