neoxia / laravel-openstack by thomasruiz

OpenStack filesystem service provider for Laravel
15,011
12
14
Package Data
Maintainer Username: thomasruiz
Package Create Date: 2017-06-09
Package Last Update: 2019-12-03
Language: PHP
License: MIT
Last Refreshed: 2024-11-23 03:24:20
Package Statistics
Total Downloads: 15,011
Monthly Downloads: 2
Daily Downloads: 0
Total Stars: 12
Total Watchers: 14
Total Forks: 3
Total Open Issues: 4

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.