PHP code example of referly / better-aws-php-core

1. Go to this page and download the library: Download referly/better-aws-php-core library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

referly / better-aws-php-core example snippets


$configFactory = new ConfigurationFactory;
$configuration = $configFactory->createConfiguration([
	'region' => 'us-east-1',
	'credentials' => [
		'key' => getenv('AWS_ACCESS_KEY_ID'),
		'secret' => getenv('AWS_SECRET_ACCESS_KEY'),
	],
]);