neoxia/laravel-openstack

OpenStack filesystem service provider for Laravel
15,014 12
Install
composer require neoxia/laravel-openstack
Latest Version:v1.1.3
PHP:>=5.5.9
License:MIT
Last Updated:Jun 3, 2019
Links: GitHub  ·  Packagist
Maintainer: thomasruiz

Latest Stable Version

Laravel OpenStack

This package provides a service provider to add a driver for OpenStack Object Storage (swift) to Laravel Storage.

Installation

Require this package with composer using the following command:

composer require neoxia/laravel-openstack

As of Laravel 5.5, this package will be automatically discovered and registered. For older version of Laravel, add the service provider in config/app.php.

Neoxia\Filesystem\OpenStackServiceProvider::class

Configuration

To configure a new Laravel storage disk on OpenStack, provide a configuration like this one in config/filesystems.php

'disks' => [

    'openstack' => [
        'driver'        => 'openstack',
        'endpoint'      => env('OS_ENDPOINT', ''),
        'username'      => env('OS_USERNAME', ''),
        'password'      => env('OS_PASSWORD', ''),
        'tenant_id'     => env('OS_TENANT_ID', ''),
        'tenant_name'   => env('OS_TENANT_NAME', ''),
        'container'     => env('OS_CONTAINER', ''),
        'region'        => env('OS_REGION', ''),
        'service_name'  => env('OS_SERVICE_NAME', 'swift'),
    ],

],

Note that the implementation of OpenStack Object Storage varies from one provider to an other. For instance, the configuration of the tenant_id and/or of the tenant_name is not always mandatory.

Related Packages

doctrine/dbal

Powerful PHP database abstraction layer (DBAL) with many features for database s...

631,580,251 9,707
laravel/framework

The Laravel Framework.

580,311,802 34,925
laravel/tinker

Powerful REPL for the Laravel framework.

489,754,436 7,444
laravel/serializable-closure

Laravel Serializable Closure provides an easy and secure way to serialize closur...

404,034,618 608
nunomaduro/collision

Cli error handling for console/command-line PHP applications.

384,821,166 4,658