PHP code example of integready / yii2-cloudflare

1. Go to this page and download the library: Download integready/yii2-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/ */

    

integready / yii2-cloudflare example snippets


'components' => [
        'cloudflareactions' => [
            'class'         => 'integready\cloudflare\CloudflareActions',
            'apiendpoint'   => 'https://api.cloudflare.com/client/v4/',
            'bearer'        => '1qaz2wsx3edc4rfv5tgb6yhn7ujm8ik1qaz2w',
            'sites'         => [
                'mysite.com',
                'anothersite.eu',
                'anotheronesite.biz',
            ],
        ],
]