PHP code example of frosh / bunnycdn-media-storage
1. Go to this page and download the library: Download frosh/bunnycdn-media-storage 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/ */
frosh / bunnycdn-media-storage example snippets
'cdn' => [
'backend' => 'bunnycdn',
'adapters' => [
'bunnycdn' =>
[
'type' => 'bunnycdn',
'mediaUrl' => 'https://example.b-cdn.net/',
'apiUrl' => 'https://storage.bunnycdn.com/example/',
'apiKey' => 'secret-api-key'
]
]
]