PHP code example of zoxta / nova-cloudflare-card

1. Go to this page and download the library: Download zoxta/nova-cloudflare-card 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/ */

    

zoxta / nova-cloudflare-card example snippets


// in app/Providers/NovaServiceProvder.php

// ...

public function cards()
{
    return [
        // ...
        new \Zoxta\NovaCloudflareCard\NovaCloudflareCard(),
    ];
}


    'cloudflare' => [
        'email'   => env('CLOUDFLARE_EMAIL', ''), # your cloudflare email
        'key'     => env('CLOUDFLARE_KEY', ''), # your cloudflare api key, from https://dash.cloudflare.com/profile
        'zone_id' => env('CLOUDFLARE_ZONE_ID', ''), # your domain's zone id, from the domain overview page
        'bearer' => env('CLOUDFLARE_BEARER', false), # if present use Authorization Bearer token instead of X-Auth-Key Header, use X-Auth if acc token, and Bearer if scoped token
    ],