Amazon component serves as a wrapper for Amazon Web Services SDK. Currently only S3 component is being used.
The best way to install the component is using Composer.
{
"require": {
"webiny/amazon": "1.0.*"
}
}For additional versions of the package, visit the Packagist page.
Once you have your composer.json file in place, just run the install command.
$ php composer.phar install
To learn more about Composer, and how to use it, please visit this link.
Alternatively, you can also do a git checkout of the repo.
To run unit tests, you need to use the following command:
$ cd path/to/Webiny/Component/Amazon/
$ composer.phar install
$ phpunit
Make sure that you also set your S3 API details in Tests/AmazonS3Test.php before running the tests.