foowie/cloudflare-detection

Detect if request is done through Cloudflare

Maintainers

Package info

github.com/foowie/cloudflare-detection

pkg:composer/foowie/cloudflare-detection

Statistics

Installs: 18 370

Dependents: 0

Suggesters: 1

Stars: 0

Open Issues: 0

v0.1.5 2022-08-08 11:19 UTC

This package is auto-updated.

Last update: 2026-03-08 19:20:54 UTC


README

CircleCI

You can use this library to detect if request is done through Cloudflare.

	$cloudflare = new CloudflareDetector();
	echo($cloudflare->isCloudflareRequest());
	echo($cloudflare->getConnectingRequestIp());
	echo($cloudflare->getConnectingCountryCode());