Whaxion / laravel-openstack-swift

OpenStack Swift storage driver for Laravel 5

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Laravel OpenStack Swift

OpenStack Swift storage driver for Laravel 5.

Installation

Require the package with Composer:

composer require mzur/laravel-openstack-swift

For Laravel 5.4 and lower, add the service provider to config/app.php:

Mzur\Filesystem\SwiftServiceProvider::class,

Configuration

Add a new storage disk to config/filesystems.php (using v3 of the identity API):

'disks' => [
   'openstack' => [
      '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', ''),
   ],
]

Additional configuration options:

  • projectId (default: null) if you want to scope access to a specific project

  • debugLog (default: false), logger (default: null), messageFormatter (default: null) [ref]

  • requestOptions (default: []) [ref]

  • disableAsserts (default: false) [ref]

  • swiftLargeObjectThreshold [ref]

  • swiftSegmentSize [ref]

  • swiftSegmentContainer [ref]

About

OpenStack Swift storage driver for Laravel 5

License:MIT License


Languages

Language:PHP 100.0%