siestacat / upload-api-client-bundle
Installs: 8
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
Type:symfony-bundle
Requires
- php: ^8.1
- siestacat/upload-api-client: ^1.0
- symfony/config: ^6.3 || ^7.0
- symfony/dependency-injection: ^6.3 || ^7.0
- symfony/http-kernel: ^6.0 || ^7.0
- symfony/yaml: 6.*
README
Symfony bundle for https://github.com/SiestaCat/php-upload-api-client library
Install:
composer require siestacat/upload-api-client-bundle
Usage:
use Siestacat\PhpUploadApiClient\Client;
$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-bundle.git
cd php-upload-api-client-bundle
composer install
composer run-script test