https://github.com/neoxia/laravel-openstack
OpenStack filesystem service provider for Laravel
https://github.com/neoxia/laravel-openstack
flysystem laravel openstack php
Last synced: 5 months ago
JSON representation
OpenStack filesystem service provider for Laravel
- Host: GitHub
- URL: https://github.com/neoxia/laravel-openstack
- Owner: neoxia
- License: mit
- Created: 2017-06-09T13:42:43.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2019-12-03T10:41:44.000Z (over 6 years ago)
- Last Synced: 2025-03-12T14:50:41.112Z (over 1 year ago)
- Topics: flysystem, laravel, openstack, php
- Language: PHP
- Size: 7.81 KB
- Stars: 12
- Watchers: 13
- Forks: 3
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[](https://packagist.org/packages/neoxia/laravel-openstack)
## 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`.
```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`
```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.