porox/dropmefiles-client

dropmefiles.com 的 PHP 客户端

1.2.1 2022-10-05 11:06 UTC

This package is auto-updated.

Last update: 2024-09-05 15:10:39 UTC


README

Build Status Latest Stable Version Total Downloads Downloads Month Minimum PHP Version

示例用法

include 'vendor/autoload.php';


use \Porox\Dropmefiles\Client\CreateFileConfig;
use \Porox\Dropmefiles\Client\PeriodTypes;

$httpClient = new \GuzzleHttp\Client(['']);
$client = \Porox\Dropmefiles\Client\DropmefilesClientFactory::create($httpClient);


$config = new CreateFileConfig();
$config->addFile(new SplFileInfo(__DIR__.'/README.md'));
$config->setNeedPassword(true);
$config->setPeriod(PeriodTypes::DAYS_3);

$resp =$client->sendFiles($config);

var_dump($resp);