====== Laravel OVH S3 Object Storage ====== Utiliser l'un des produit "object storage S3 API" d'OVH avec Laravel 10.x : "Standard Object Storage - S3 API" "High Performance Object Storage - S3 API" * [[https://help.ovhcloud.com/csm/fr-public-cloud-storage-s3-limitations?id=kb_article_view&sysparm_article=KB0047372|OVH Object Storage - Limites techniques]] * [[https://laravel.com/docs/10.x/filesystem#amazon-s3-compatible-filesystems|Laravel Amazon S3 Compatible Filesystems]] Il faut ajouter le package **[[https://flysystem.thephpleague.com/docs/adapter/aws-s3-v3/|league/flysystem-aws-s3-v3]]** ./sail composer require league/flysystem-aws-s3-v3 Quand on créé un Object Storage nous sont donnés : * une région * "description" puis appelée "nom" puis "ID" * clé accès S3: 0faxxx78a * clé secrète S3: 0cexxxfe1 Pour un "High Performance Object Storage - S3 API" **la config Lavarel** sera : AWS_ACCESS_KEY_ID= AWS_SECRET_ACCESS_KEY= AWS_DEFAULT_REGION= AWS_BUCKET= #AWS_URL= AWS_ENDPOINT=https://s3.sbg.perf.cloud.ovh.net/ AWS_USE_PATH_STYLE_ENDPOINT=true