Git Product home page Git Product logo

laravel-openstack-swift's Introduction

Laravel OpenStack Swift

OpenStack Swift storage driver for Laravel/Lumen.

Installation

Require the package with Composer:

composer require mzur/laravel-openstack-swift

Laravel

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

Mzur\Filesystem\SwiftServiceProvider::class,

Lumen

Add the service provider to bootstrap/app.php:

$app->register(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]

  • 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.

laravel-openstack-swift's People

Contributors

mzur avatar thannaske 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.