PHPackages                             nathandentzau/cloudflare-geolocation - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. nathandentzau/cloudflare-geolocation

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

nathandentzau/cloudflare-geolocation
====================================

A library that assists in retrieving the continent and country information from Cloudflare's headers.

1.0.0(6y ago)172[1 PRs](https://github.com/nathandentzau/php-cloudflare-geolocation/pulls)MITPHPPHP &gt;= 7.2

Since Sep 9Pushed 2y ago1 watchersCompare

[ Source](https://github.com/nathandentzau/php-cloudflare-geolocation)[ Packagist](https://packagist.org/packages/nathandentzau/cloudflare-geolocation)[ RSS](/packages/nathandentzau-cloudflare-geolocation/feed)WikiDiscussions master Synced yesterday

READMEChangelogDependencies (2)Versions (2)Used By (0)

PHP Cloudflare Geolocation
==========================

[](#php-cloudflare-geolocation)

A library that assists in retrieving the continent and country information from Cloudflare's request headers.

How to Install
--------------

[](#how-to-install)

You can install this library with [Composer](https://getcomposer.org):

```
$ composer require nathandentzau/cloudflare-geolocation
```

Dependencies
------------

[](#dependencies)

- PHP 7.2+
- [Symfony HTTP Foundation](https://github.com/symfony/http-foundation) component.

How to Use
----------

[](#how-to-use)

### Get the current user's continent

[](#get-the-current-users-continent)

```
