captp / ovh-swift
Allow basic interactions with OVH Swift Storage
1.2.1
2023-11-22 11:08 UTC
Requires
- php: ^8.1
- composer/composer: ^2.6
- guzzlehttp/guzzle: ^7.8
- vlucas/phpdotenv: ^5.5
Requires (Dev)
- fakerphp/faker: ^1.23
- phpunit/phpunit: ^10.1
- spatie/ray: 1.39.0
README
Allow basic operations with OVH Swift Object Storage
Prerequisites
Environment variable giving the '.env' path, using the key 'ENV_PATH'
Installation
composer require captp/ovh-swift
Env example and explainations
SWIFT_USERNAME=
SWIFT_PASSWORD=
SWIFT_PROJECT_ID=
SWIFT_DOMAIN=default
SWIFT_REGION=
SWIFT_PROVIDER=ovh
MAX_FILE_SIZE=262144000
OVH Examples
SWIFT_USERNAME : S3 User with 'ObjectStore operator' role at least.
SWIFT_PASSWORD : Password generated when creating user. Password can ben regenerated.
Note that those are also used to access the OpenStack API GUI
SWIFT_PROJECT_ID : Found in OpenStack API GUI under the "Projects" tab. SWIFT_DOMAIN : Unsure. Appears to always be 'default'. Is 'default' bu default. SWIFT_REGION : Region where your object storage is located SWIFT_PROVIDER : For now, only OVH is supported. MAX_FILE_SIZE : Defaults to OpenStack limitation.