nexxai / laravel-cfcache
A handful of Cloudflare cache helpers for Laravel
Installs: 1
Dependents: 0
Suggesters: 0
Security: 0
Stars: 15
Watchers: 1
Forks: 0
Open Issues: 1
pkg:composer/nexxai/laravel-cfcache
Requires
- php: ^8.2
- illuminate/console: ^12.0
- illuminate/support: ^12.0
Requires (Dev)
- laravel/pint: ~1.25.0
- mockery/mockery: ^1.4.4
- orchestra/testbench: ^10.0
- phpunit/phpunit: ^11.0|^12.0
README
Laravel Cloudflare Cache
This package is a WIP. It currently contains a command to generate the expression for a Cloudflare security rule for your Laravel application routes.
Requirements
A Laravel application running Laravel 12 or higher. Not running a stable version of Laravel? Upgrade with Shift.
Installation
You can install this package by running the following command:
composer require -W nexxai/laravel-cfcache
Documentation
Cloudflare Security / WAF rule
This command was inspired by Jason McCreary's tweet: https://x.com/gonedark/status/1978458884948775294
php artisan cloudflare:waf-rule
Once generated, you can copy and paste the expression into your domain's security rules (Security -> Security Rules -> Create Rule -> Custom Rule -> Edit expression)
Contributing
Contributions to this project are welcome. You may open a Pull Request against the main
branch. Please ensure you write a clear description (ideally with code samples) and all workflows are passing.