PHPackages                             kwazaro/sypex-geoip - 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. kwazaro/sypex-geoip

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

kwazaro/sypex-geoip
===================

Sypex geoip library.

081PHP

Since Jun 21Pushed 3y ago1 watchersCompare

[ Source](https://github.com/kwazaro/sypex-geoip)[ Packagist](https://packagist.org/packages/kwazaro/sypex-geoip)[ RSS](/packages/kwazaro-sypex-geoip/feed)WikiDiscussions master Synced 3d ago

READMEChangelogDependenciesVersions (1)Used By (0)

GeoIP PHP library for Sypex GeoIP database
==========================================

[](#geoip-php-library-for-sypex-geoip-database)

This library uses Sypex GeoCity database by default.

Installation
------------

[](#installation)

The preferred way to install this extension is through [composer](http://getcomposer.org/download/).

Either run

```
php composer.phar require --prefer-dist kwazaro/sypex-geoip "@dev"

```

or add

```
"kwazaro/sypex-geoip": "@dev"

```

to the require section of your `composer.json` file.

Usage
-----

[](#usage)

Once the library is installed, simply use it in your code by :

```
