Skip to content

Commit 9971e52

Browse files
First tested release
1 parent 2fee2bd commit 9971e52

File tree

6 files changed

+38
-0
lines changed

6 files changed

+38
-0
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
.idea
2+
vendor

LICENSE

100755100644
File mode changed.

README.md

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
# Laravel Custom Filesystem for IBM Cloud Object Storage
2+
3+
This is an [IBM Cloud Object Storage](https://www.ibm.com/cloud/object-storage) Custom Filesystem for [Laravel](http://laravel.com/).
4+
5+
## Installation
6+
7+
* Install the package with Composer
8+
```bash
9+
composer require tavux/laravel-ibm-cos
10+
```
11+
* Add `\Tavux\IBMCloudObjectStorage\Laravel\IbmCloudObjectStorageProvider::class` to `providers` in *config/app.php*
12+
13+
* In your *.env* file, add these lines with your IBM Cloud storage parameters
14+
```dotenv
15+
IBM_COS_ACCESS_KEY_ID=<access_key>
16+
IBM_COS_SECRET_ACCESS_KEY=<secret_access_key>
17+
IBM_COS_DEFAULT_REGION=<region>
18+
IBM_COS_BUCKET=<bucket>
19+
IBM_COS_ENDPOINT=<endpoint>
20+
```
21+
22+
## Usage
23+
24+
This is an example of usage :
25+
26+
```php
27+
use Illuminate\Support\Facades\Storage;
28+
29+
Storage::disk('ibm-cos')->allFiles('/');
30+
```
31+
32+
To know all the available methods, please have a look to the [Laravel File Storage documentation](https://laravel.com/docs/6.x/filesystem).
33+
34+
35+
36+

composer.json

100755100644
File mode changed.

config/filesystems.php

100755100644
File mode changed.

src/IbmCloudObjectStorageProvider.php

100755100644
File mode changed.

0 commit comments

Comments
 (0)