Coder Social home page Coder Social logo

laravel-ovh-openstack-swift's Introduction

Laravel OVH Object & Block Storage (OpenStack Swift)

OVH Object & Block Storage driver for Laravel/Lumen.

Installation

Require the package with Composer:

composer require xtrcode/laravel-ovh-openstack-swift

Laravel

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

Xtrcode\Filesystem\SwiftServiceProvider::class,

Lumen

Add the service provider to bootstrap/app.php:

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

Configuration

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

'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', ''),
   ],
]

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]

  • prefix (default: null): Prefix to use for the names of the objects in the container.

  • url (default: null): Override URL to use for public URLs to objects. If this is not set, the public URL will point to the public URL of Swift. This configuration is useful if you use a reverse proxy to pass through requests to public Swift containers.

Credits

LICENSE

MIT

laravel-ovh-openstack-swift's People

Contributors

mzur avatar xtrcode avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.