1. Go to this page and download the library: Download arraypress/wp-s3-browser 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/ */
arraypress / wp-s3-browser example snippets
use ArrayPress\S3\Browser;
use ArrayPress\S3\Providers\CloudflareR2;
// Create a provider instance
$provider = new CloudflareR2( 'default', [ 'account_id' => 'your_account_id' ] );
// Initialize the browser
$browser = new Browser(
$provider,
'your_access_key',
'your_secret_key',
[ 'post', 'page' ], // Allowed post types (optional)
'default-bucket', // Default bucket (optional)
'uploads/' // Default prefix (optional)
);
// Code examples coming soon...
// Code examples coming soon...
// Code examples coming soon...
// Code examples coming soon...
// Configuration examples coming soon...
// Cache management examples coming soon...
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.