PHP code example of nearata / flarum-ext-cloudflare

1. Go to this page and download the library: Download nearata/flarum-ext-cloudflare 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/ */

    

nearata / flarum-ext-cloudflare example snippets

sh
composer update nearata/flarum-ext-cloudflare:"*"
php flarum cache:clear
config
# Adding driver to Flarum Assets filesystem

 return array (
  'debug' => false,
  ...
  'disk_driver.flarum-assets' => 'r2',
  'disk_driver.another-extension-filesystem' => 'r2'
);