zakharov / composer-s3-plugin
There is no license information available for the latest version (1.1.0) of this package.
composer plugin for support repositories on s3
1.1.0
2024-02-27 08:04 UTC
Requires
- composer-plugin-api: ^2.1
Requires (Dev)
- composer/composer: ^2.1
- phpunit/phpunit: ^9.5
This package is auto-updated.
Last update: 2024-12-27 10:14:15 UTC
README
Плагин для работы с приватными репозиториями размещенных на s3-хранилищах
Создание приватного репозитория https://getcomposer.org/doc/articles/handling-private-packages.md
Установка:
composer global req zakharov/composer-s3-plugin
Настройка:
{ "repositories": [ { "type": "composer", "url": "s3://<BUCKET_HOST>/[REPOSITORY_PATH/]" } ], "config": { "s3": { "<BUCKET_HOST>": { "access-key": "<ACCESS_KEY>", "secret-key": "<SECRET_KEY>", "region": "<REGION>", "expires": "[strtotime compatible, default = +2 minutes]" } } } }
Пример:
{
"repositories": [
{
"type": "composer",
"url": "s3://bucket.storage.yandexcloud.net/"
}
],
"config": {
"s3": {
"bucket.storage.yandexcloud.net": {
"access-key": "ASDwer234ASdf",
"secret-key": "ASdq2r312asdASd",
"region": "ru-central1"
}
}
}
}