PHP code example of xtrcode / laravel-ovh-openstack-swift

1. Go to this page and download the library: Download xtrcode/laravel-ovh-openstack-swift 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/ */

    

xtrcode / laravel-ovh-openstack-swift example snippets


Xtrcode\Filesystem\SwiftServiceProvider::class,

$app->register(Xtrcode\Filesystem\SwiftServiceProvider::class);

'disks' => [
   'ovh' => [
      'driver' => 'swift',
      'authUrl'    => env('OS_AUTH_URL', ''),
      'region'     => env('OS_REGION_NAME', ''),
      'user'       => env('OS_USERNAME', ''),
      'domain'     => env('OS_USER_DOMAIN_NAME', 'default'),
      'password'   => env('OS_PASSWORD', ''),
      'container'  => env('OS_CONTAINER_NAME', ''),
      'tenantName' => env('OS_TENANT_NAME', ''),
   ],
]