Download the PHP package sebdesign/artisan-cloudflare without Composer
On this page you can find all versions of the php package sebdesign/artisan-cloudflare. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download sebdesign/artisan-cloudflare
More information about sebdesign/artisan-cloudflare
Files in sebdesign/artisan-cloudflare
Package artisan-cloudflare
Short Description Laravel artisan commands for Cloudflare
License MIT
Homepage https://github.com/sebdesign/artisan-cloudflare
Informations about the package artisan-cloudflare
Laravel artisan commands for Cloudflare
Laravel artisan commands for interacting with the CloudFlare API.
Installation
You can install the package via composer. This package requires Laravel 5.5 or higher.
Since version 5.5, Laravel uses package auto-discovery, so doesn't require you to manually add the ServiceProvider. If you don't use auto-discovery or you are using an older version, add the service provider in config/app.php
.
Configuration
Publish the config file in config/cloudflare.php
.
To authenticate with an API key set CLOUDFLARE_KEY
and CLOUDFLARE_EMAIL
in the .env
.
Otherwise you can use an API token by setting the CLOUDFLARE_TOKEN
in the .env
.
The following options are available:
Usage
Purge command
Read more about Purging cached resources from Cloudflare on the support article.
Execute the cloudflare:cache:purge
command in your console or integrate it in your deployment workflow.
Purge all the zones with their files and tags.
Purge a single zone.
If the zone exists in the config, then its files and tags will be purged. Otherwise everything will be purged from the given zone.
Purge individual files from all the zones.
Purge individual tags from all the zones.
Purging tags is available for Enterprise accounts only.
Purge individual hosts from all the zones.
Purging hosts is available for Enterprise accounts only.
Purge individual files, tags, and hosts from all the zones.
Purge individual files, tags, and hosts from a single zone.
Block IP command
Block an IP address for all the zones.
Block an IP address for a specific zone.
Block an IP address for all the zones with a custom comment.
Block an IP address for a specific zone with a custom comment.
Changelog
Please see CHANGELOG for more information on what has changed recently.
Testing
Contributing
Please see CONTRIBUTING for details.
Security
If you discover any security related issues, please email [email protected] instead of using the issue tracker.
License
The MIT License (MIT). Please see License File for more information.
All versions of artisan-cloudflare with dependencies
guzzlehttp/guzzle Version ^7.0
illuminate/console Version ^5.5|^6.0|^7.0|^8.0|^9.0|^10.0|^11.0
illuminate/support Version ^5.5|^6.0|^7.0|^8.0|^9.0|^10.0|^11.0