PHP code example of michallkanak / symfony-cloudflare-multi-view
1. Go to this page and download the library: Download michallkanak/symfony-cloudflare-multi-view 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/ */
michallkanak / symfony-cloudflare-multi-view example snippets
return [
// ...
Michallkanak\SymfonyCloudflareMultiView\CfMultiViewBundle::class => ['all' => true],
];
cron
*/5 * * * * php bin/console cf-multi-view:sync-stats --start="-2 hours" --with-countries > /dev/null 2>&1
bash
# Delete stats older than 90 days (asks for confirmation)
php bin/console cf-multi-view:purge-stats --older-than="90 days"
# Skip confirmation
php bin/console cf-multi-view:purge-stats --older-than="3 months" --force
bash
# Asks for confirmation
php bin/console cf-multi-view:delete-account --name="Staging Account"
# Skip confirmation
php bin/console cf-multi-view:delete-account --name="Staging Account" --force