PHP code example of sebdesign / artisan-cloudflare

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

    

sebdesign / artisan-cloudflare example snippets

 php


'providers' => [
    Sebdesign\ArtisanCloudflare\ServiceProvider::class,
],
 bash
php artisan vendor:publish --provider="Sebdesign\ArtisanCloudflare\ServiceProvider"
 bash
php artisan cloudflare:cache:purge
 bash
php artisan cloudflare:cache:purge 023e105f4ecef8ad9ca31a8372d0c353
 bash
php artisan cloudflare:cache:purge --tag=styles --tag=scripts
 bash
php artisan cloudflare:waf:block-ip 6.6.6.6
 bash
php artisan cloudflare:waf:block-ip 6.6.6.6 023e105f4ecef8ad9ca31a8372d0c353
 bash
php artisan cloudflare:waf:block-ip 6.6.6.6 --notes="By Artisan Cloudflare"
 bash
php artisan cloudflare:waf:block-ip 6.6.6.6 023e105f4ecef8ad9ca31a8372d0c353 --notes="By Artisan Cloudflare"