PHP code example of exula / laravel-storage-rados-s3

1. Go to this page and download the library: Download exula/laravel-storage-rados-s3 library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

exula / laravel-storage-rados-s3 example snippets


'providers' => [
    // ...
    Exula\Ceph\CephStorageServiceProvider::class,
]

'ceph' => [
            'base_url' => env('CEPH_BASE_URL', 'xxxxxxxxx'),
            'driver' => 'ceph',
            'key' => env('CEPH_ACCESS_KEY', 'xxxxxxx'),
            'credentials' => [
                'key' => env('CEPH_ACCESS_KEY', 'xxxxxxx'),
                'secret' => env('CEPH_SECRET_KEY', 'xxxxxxx'),
                ],
            'region' => '',
            'bucket' => env('CEPH_BUCKET', 'test'),
            'version' => env('CEPH_VERSION', 'latest'),
            'ACL' => env('CEPH_ACL', 'private'), //private,'public-read',
            'visibility' => env('CEPH_VISIBILITY', 'private')
        ],