Repository navigation
Example website
The example is a self-contained Laravel application inside examples/website/. It consumes the actual root package through a Composer path repository and keeps its own dependency lockfiles.
Clone the source repository, then run:
cd examples/website
docker compose upOpen http://localhost:8080. The default port is bound to loopback. Change the EXAMPLE_PORT environment variable if that local port is occupied.
The example pins PHP 8.5.13. Its image builds the locked Composer dependencies and browser assets; no host PHP/Node toolchain, external database or Cloudflare API credentials are required.
Examples are excluded from package source archives. Use a Git clone to get the runnable application.
To use another port:
EXAMPLE_PORT=8081 docker compose upStop with Ctrl+C, or use docker compose down after detached startup. Rebuild after source changes with docker compose up --build; the image contains a snapshot of the example and root package.
The full repository is required because the Composer path repository points to ../../. The example is self-contained in its runtime, rather than an independently copyable application. Runnable examples have an explicit owner exception allowing published loopback ports for straightforward clone-and-run use; this changes no other application's ingress policy.
- Visitor context shows location fields and their unknown states.
- UI examples demonstrates regional delivery copy and formatting a fixed event in the supplied timezone.
- Request inspector displays selected metadata and ingress trust without dumping unrelated authorization or environment data.
The interface supports mobile layouts, light/dark themes and English, Thai and Arabic, including RTL. Geographic information does not automatically choose the UI language.
Choose Bangkok, London, Dubai, missing location, Tor, untrusted ingress, malformed headers or a live request. Simulations use synthetic requests and isolated configuration with the real parser. They do not replace the live application's request or trust policy.
The mode badge distinguishes simulation from a live request. A simulated location does not identify the person viewing the example.
Localhost normally has no Cloudflare metadata. Unknown live values are expected until the example receives traffic through a correctly configured controlled ingress.
Supply the actual immediate ingress addresses with CLOUDFLARE_TRUSTED_PROXIES as a comma-separated IP/CIDR list. Enable the applicable Cloudflare location settings. Preserve restricted origin access and use the topology guidance in Trusted ingress.
The example does not provision tunnels, DNS records or API credentials. Its Compose configuration intentionally remains usable locally without those services.
An optional accountless Quick Tunnel recipe is a future documentation possibility, not a current package command or a guarantee that every managed location header will be present.
All example HTML uses private, no-store to avoid sharing personalized output across visitors. Theme preferences are remembered locally when storage is available. Language selection preserves the page/scenario and uses a non-sensitive locale cookie. Planned-only languages are not offered in the picker; initial Thai/Arabic copy should receive human language review before wider publication.
For live ingress, set the environment value when recreating the container:
CLOUDFLARE_TRUSTED_PROXIES=192.0.2.10 docker compose up --force-recreateReplace the documentation address with your verified controlled ingress. The default is empty; this command does not configure Cloudflare settings or provision a tunnel.
From examples/website/:
docker compose run --rm website composer test
docker compose run --rm website composer lint
docker compose run --rm website composer validate --strict
docker compose run --rm website php --versionThe image build also checks TypeScript and compiles assets. Synthetic tests cover application pages and harness behavior. A successful simulated scenario is not proof that a live Cloudflare deployment has been configured.
The example source is covered by the repository’s Apache-2.0 license; third-party dependencies retain their own licenses.
Source: Compose configuration.
The core work in source b52f0eeb485f67119f209094ce546096427358bf adds latitude, longitude and metro-code rows to the visitor page and inspector allowlist. Existing Bangkok, London and Dubai simulations include synthetic coordinates; malformed/untrusted/missing cases demonstrate unknown values. Public request-fixture tests also exercise valid zero coordinates and a leading-zero metro identifier through the actual UI. Labels are populated in English, Thai and Arabic; numbers/identifiers are shown as direction-isolated SDK code values. These additions are not in tagged 0.9.1.
See Unreleased core for the exact source, CI run, 18-case responsive browser evidence, screenshots and tool limitations. Approximate IP context does not choose a locale, currency or user preference.
Maintained by-dolly.
Released API reference: 0.9.0 — Cirrus. Future capabilities are marked on the Roadmap.
Repository · Project website · Apache-2.0
Maintained by-dolly.

Moztopia Cloudflare
- Home
- Getting started
- Trusted ingress
- Visitor and request context
- Diagnostics and doctor
- Blade and testing
- Example website
- Development and verification
- Branding
- SDK contract
- Roadmap
- Unreleased core work
- Release gates
- Optional credential-free additions
- V2 discovery
- Planning decisions
- Ecosystem review
- Ecosystem inventory
Maintained by-dolly.