{"repo":"nexxai/laravel-cfcache","free":true,"listed":false,"github":"https://github.com/nexxai/laravel-cfcache","clone":"git clone https://github.com/nexxai/laravel-cfcache.git","description":"A handful of Cloudflare cache helpers for Laravel","language":"PHP","stars":138,"topics":["cache","cloudflare","laravel"],"license":"MIT","category":"api-integrations-sdks","readme_excerpt":"Laravel Cloudflare Cache This package provides tools to manage Cloudflare integration with your Laravel application. It includes commands for generating Cloudflare security rules and purging cached content. The WAF rule generation was inspired by Jason McCreary's tweet: https://x.com/gonedark/status/1978458884948775294 Requirements A Laravel application running Laravel 12 or higher. Not running a stable version of Laravel? Upgrade with Shift. Installation / Updating You can install this package by running the following command: To publish the configuration file (needed for WAF rule syncing): Basic Usage WAF Rule Generation Generate the WAF rule expression for your Laravel routes: Once generated, you can copy and paste the expression into your domain's security rules by going to Security - Security Rules - Create Rule - Custom Rule - Edit expression Cache Purging Purge all cached content or specific paths/routes: Please see the Notes section below for additional information and examples, and potential gotchas. Advanced Usage Cloudflare API Configuration To use the live Cloudflare features, you need to configure your Cloudflare API credentials. Add the following to your .env file: Getting Your Cloudflare Credentials 1. API Token : - Go to Cloudflare Dashboard - Click \"Create Token\" - Use the \"Custom token\" template - Name the token \"CFCache package token\" - Based on the features you need, grant the following permissions: - WAF rules : Zone - Firewall Services - Edit - Cache pur","default_branch":null,"files":null,"tree":[],"storefront":"/r/nexxai","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/nexxai/laravel-cfcache/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}