Skip to content

JJK801/composer-aws

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

composer-aws

A composer plugin to download packages from Amazon S3 which may be used for private repositories.

Installation

Global scope (per user) installation

$ composer global require "naderman/composer-aws:~0.2"

Project scope installation

$ composer require "naderman/composer-aws:~0.2"

Configuration

There are three options available in order to configure and use this plugin:

  1. For AWS EC2: Create an IAM profile for your instances to access the bucket - then no other configuration is necessary.
  2. Set the environment variables AWS_ACCESS_KEY_ID and AWS_SECRET_ACCESS_KEY
  3. Add the following to your config.json (in $COMPOSER_HOME):
{
    "config": {
        "amazon-aws": {
            "key": "your aws access key",
            "secret": "your aws secret"
        }
    }
}

Usage

Once the plugin is installed and configured, you can transparently use packages.json files which contain s3:// schemes for dist urls.

Further reading

About

AWS Plugin for Composer

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • PHP 100.0%