michallkanak/symfony-cloudflare-multi-view
Symfony bundle for Cloudflare multi-view setups: configure multiple views in one place and serve the right one per request. It streamlines Cloudflare integration with Symfony services and Twig, keeping view selection clean, configurable, and easy to maintain.
The package is a Symfony bundle that renders a password-protected dashboard over Cloudflare's analytics API for multiple zones/accounts. Your first day with it looks like this:
Bundle class, DI Extension/Configuration, Twig templates). If your app is Laravel, there is no service provider and no publishable config — you will either bridge it manually (register the bundle's services in a provider, swap Twig for Blade) or lift the Cloudflare client and skip the UI entirely. Check the PHP constraint against your runtime before you composer require.DependencyInjection/Configuration.php and the template resources. Read both before wiring anything.If step 4 is fighting you, stop and check whether the core client is usable standalone — the dashboard is the least portable part, and that decision is cheaper to make on day one than week three.
"0.1.*" at most, exact-pin if you're risk-averse, and read the tag diff before bumping — 0.1.1 is a colour-mapping change only, so upgrading from 0.1.0 needs a visual smoke test of the country lines and nothing more.Vary matter if you embed any of this. If you surface a per-country fragment anywhere in your own app, key your cache on country or you'll serve one country's view to everyone — the classic geo bug, and painful to spot because the page still renders.SECURITY.md-less-dependency mitigation: rotate tokens on a calendar, scope to analytics read, and include the dashboard in whatever health-checking you have. Consider a small /health/cloudflare-analytics probe that fails loudly.vendor/ — both raise your rebase cost on every upstream tag.How can I help you explore Laravel packages today?