tavux / laravel-ibm-cos
Laravel Custom Filesystem for IBM Cloud Object Storage
Installs: 3 594
Dependents: 0
Suggesters: 0
Security: 0
Stars: 2
Watchers: 1
Forks: 0
Open Issues: 0
Requires
- php: >=5.6.0
- tavux/flysystem-ibm-cos: ^1.0.1
This package is auto-updated.
Last update: 2025-04-15 18:33:07 UTC
README
This is an IBM Cloud Object Storage Custom Filesystem for Laravel.
Installation
- Install the package with Composer
composer require tavux/laravel-ibm-cos
-
Add
\Tavux\IBMCloudObjectStorage\Laravel\IbmCloudObjectStorageProvider::class
toproviders
in config/app.php -
In your .env file, add these lines with your IBM Cloud storage parameters
IBM_COS_ACCESS_KEY_ID=<access_key> IBM_COS_SECRET_ACCESS_KEY=<secret_access_key> IBM_COS_DEFAULT_REGION=<region> IBM_COS_BUCKET=<bucket> IBM_COS_ENDPOINT=<endpoint>
Usage
This is an example of usage :
use Illuminate\Support\Facades\Storage; Storage::disk('ibm-cos')->allFiles('/');
To know all the available methods, please have a look to the Laravel File Storage documentation.