New

Just launched: Vueblocks, a brand-new search engine for Vue packages! Explore Vueblocks →

webparking/laravel-filesystem-openstack

Laravel filesystem wrapper for openstack swift v2 / v3.
2,144
Install
composer require webparking/laravel-filesystem-openstack
Latest Version:1.0.3
Laravel:5 – 8
License:MIT
Last Updated:Jan 25, 2024
Links: GitHub  ·  Packagist
Maintainer: JeroenVanOort

Laravel filesystem wrapper for Openstack swift

This package replaced the not actively maintained https://github.com/neoxia/laravel-openstack and is a wrapper for https://github.com/chrisnharvey/flysystem-openstack-swift. Main motivation was the need to use it in a Laravel 7 & 8 projects and the switch from a deeper dependency on guzzle/guzzle to guzzlehttp/guzzle.

Installation

composer require webparking/laravel-filesystem-openstack

Usage

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

'disks' => [
    'openstack' => [
        'driver'        => 'openstack',
        'auth_url'      => env('OS_AUTH_URL', ''),
        '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', ''),
        'id_version     => 'v3' // Supported identity version v2 & v3 (default)
    ],
],

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.

Licence and Postcardware

This software is open source and licensed under the MIT license.

If you use this software in your daily development we would appreciate to receive a postcard of your hometown.

Please send it to: Webparking BV, Cypresbaan 31a, 2908 LT Capelle aan den IJssel, The Netherlands

Related Packages

doctrine/dbal

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

648,266,899 9,701
laravel/framework

The Laravel Framework.

604,216,237 34,982
laravel/tinker

Powerful REPL for the Laravel framework.

512,508,631 7,443
laravel/serializable-closure

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

429,221,767 607
nunomaduro/collision

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

403,217,078 4,664

Version History

Version Released Laravel License
1.0.3 ^5.5||^6||^7||^8 MIT
1.0.2 ^5.5||^6||^7 MIT
1.0.1 >=5.5 <=7 MIT
1.0.0 5.5.* MIT