PHP code example of toumoro / tm-cloudfront
1. Go to this page and download the library: Download toumoro/tm-cloudfront 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/ */
toumoro / tm-cloudfront example snippets
'EXTENSIONS' => [
'tm_cloudfront' => [
'apikey' => 'YOUR_AWS_KEY',
'apisecret' => 'YOUR_AWS_SECRET',
'region' => 'us-east-1',
'version' => 'latest',
'distributionIds' => '{"domain1.com":"DIST_ID_1", "domain2.com":"DIST_ID_2", "cdn.domain3.com":"DIST_ID_3", "domain4.com":"DIST_ID_4, DIST_ID_5"}'
]
]