porox / dropmefiles-client
dropmefiles.com 的 PHP 客户端
1.2.1
2022-10-05 11:06 UTC
Requires
- php: >=7.2
- ext-json: *
- guzzlehttp/guzzle: ~6.3
Requires (Dev)
- friendsofphp/php-cs-fixer: ^2.18
- phpunit/phpunit: ^8.5
- vimeo/psalm: ^4.4
README
示例用法
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);