foowie/cloudflare-detection

Detect if request is done through Cloudflare

Installs: 18 025

Dependents: 0

Suggesters: 1

Security: 0

Stars: 0

Watchers: 1

Forks: 0

Open Issues: 0

pkg:composer/foowie/cloudflare-detection

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

This package is auto-updated.

Last update: 2025-10-08 18:00:51 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());