PHP code example of bag / digitalocean-spaces-helpers
1. Go to this page and download the library: Download bag/digitalocean-spaces-helpers 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/ */
bag / digitalocean-spaces-helpers example snippets
foreach ($client->iterate('my-space', true, ['Prefix' => 'reports/'], maxItems: 100) as $key) {
// Process one key without loading the complete listing into memory.
}