- Enable Openssl and cURL
- If you are using XAMPP, these utilities are already installed. Enable the following in xampp/php/php.ini in order to use it.
extension=curl extension=php_openssl.dll
- If you are using XAMPP, these utilities are already installed. Enable the following in xampp/php/php.ini in order to use it.
- Initiate and verify Composer support for your IDE. Here’s link for Netbeans:
- http://wiki.netbeans.org/TS_74_PHP_Composer_Support
- Here’s a link to install composer: https://getcomposer.org/download/
- To install aws sdk version 3 (latest as of today), add the following to composer.json
"require": { "aws/aws-sdk-php":"3.0"}
then right click on the project, choose composer->install
- Create an user on AWS with the proper permission to access the objects in the s3 buckets. Here’s a link on how to do that: https://docs.aws.amazon.com/AmazonS3/latest/user-guide/set-permissions.html.
- Get the user’s access ID and secret access key.
- Install AWS CLI https://docs.aws.amazon.com/cli/latest/userguide/cli-chap-install.html
- Use CLI to generate configuration file containing your S3 access keys
- After installing AWS CLI, start a fresh session of command line
- Issue the following command:
aws configure
- Type in your access ID, secret access key, default region and output format. Here’s link to an example: https://docs.aws.amazon.com/cli/latest/userguide/cli-chap-configure.html#cli-quick-configuration
- After that, you should see two files generated /users/<your name>/.aws/config and /users/<your name>/.aws/credentials
- Here’s a link to s3 API: https://docs.aws.amazon.com/aws-sdk-php/v3/api/class-Aws.S3.S3Client.html
- Another option is to use the AWS S3 transfer manager: https://docs.aws.amazon.com/sdk-for-php/v3/developer-guide/s3-transfer.html