moztopia / cloudflare
Credential-free Cloudflare visitor and request context for Laravel applications.
Requires
- php: ~8.4.27 || ~8.5.12
- ext-filter: *
- ext-json: *
- illuminate/container: ^12.0 || ^13.0
- illuminate/contracts: ^12.0 || ^13.0
- illuminate/http: ^12.0 || ^13.0
- illuminate/support: ^12.0 || ^13.0
- symfony/http-foundation: ^7.2 || ^8.0
- symfony/intl: ^7.2 || ^8.0
- symfony/polyfill-intl-icu: ^1.33
Requires (Dev)
- laravel/pint: ^1.25
- orchestra/testbench: ^10.0 || ^11.0
- pestphp/pest: ^4.0
Suggests
None
Provides
None
Conflicts
None
Replaces
None
This package is auto-updated.
Last update: 2026-11-22 04:13:50 UTC
README
Moztopia Cloudflare
moztopia/cloudflare gives Laravel applications credential-free access to trusted Cloudflare visitor location and request context. Use country, region, city and timezone in controllers, services and Blade, with explicit ingress trust and predictable unknown values. Reading context makes no network requests.
Read the project wiki — the source of truth for human-facing project documentation, including installation, configuration, API usage, testing and the roadmap.
- Getting started
- Trusted ingress
- Visitor and request context
- Blade and testing
- Runnable example website
- Development and verification
The self-contained example lives in examples/website/. Run docker compose up there and open http://localhost:8080.
Release name: Cirrus, through and including 1.0.0. The source version is recorded in VERSION.
