dbp / relay-blob-library
PHP helper library for interaction with the dbp/relay-blob-bundle.
Installs: 29 804
Dependents: 5
Suggesters: 0
Security: 0
Stars: 1
Watchers: 3
Forks: 0
Open Issues: 2
Requires
- php: >=8.2
- ext-json: *
- guzzlehttp/guzzle: ^7.0
- guzzlehttp/psr7: ^2.7
- psr/http-message: ^1.0 || ^2.0
- symfony/config: ^6.4 || ^7.2
- symfony/dependency-injection: ^6.4 || ^7.2
- symfony/http-foundation: ^6.4 || ^7
- web-token/jwt-library: ^3.3 || ^4.0.4
Requires (Dev)
- friendsofphp/php-cs-fixer: ^3.50
- phpstan/phpstan: ^2.0.0
- phpstan/phpstan-phpunit: ^2.0.0
- phpstan/phpstan-symfony: ^2.0
- phpunit/phpunit: ^10.3
- dev-main
- v0.3.7
- v0.3.6
- v0.3.5
- v0.3.4
- v0.3.3
- v0.3.2
- v0.3.1
- v0.3.0
- v0.2.14
- v0.2.13
- v0.2.12
- v0.2.11
- v0.2.10
- v0.2.9
- v0.2.8
- v0.2.7
- v0.2.6
- v0.2.5
- v0.2.4
- v0.2.3
- v0.2.2
- v0.2.1
- v0.2.0
- v0.1.10
- v0.1.9
- v0.1.8
- v0.1.7
- v0.1.6
- v0.1.5
- v0.1.4
- v0.1.3
- v0.1.2
- v0.1.1
- v0.1.0
- dev-renovate/all-minor-patch
- dev-renovate/patch-all-minor-patch
- dev-renovate/lock-file-maintenance
This package is auto-updated.
Last update: 2025-05-31 06:10:08 UTC
README
GitHub | Packagist | Changelog
PHP helper library for interaction with the relay-blob-bundle.
Installation
composer require dbp/relay-blob-library
Usage
Here is an example of how to use the library in HTTP mode, with OIDC authentication enabled:
// create the API $blobApi = BlobApi::createHttpModeApi( $bucketIdentifier, $bucketKey, $blobBaseUrl, $oidcEnabled, $oidcProviderUrl, $oidcClientId, $oidcClientSecret); $blobFile = new BlobFile(); $filePath = 'files/myFile.txt'; $blobFile->setFilename(basename($filePath)); $blobFile->setFile(new SplFileInfo($filePath)); $blobFile->setPrefix('my-prefix'); // add the file $blobFile = $blobApi->addFile($blobFile); // get the file $blobFile = $blobApi->getFile($blobFile->getIdentifier()); // remove the file $blobApi->removeFile($blobFile->getIdentifier());
- For the whole example PHP code, see BlobApiExamples.php
Integration into a Symfony bundle
Soon to come.