Torann / laravel-geoip

Determine the geographical location of website visitors based on their IP addresses.

Home Page:http://lyften.com/projects/laravel-geoip

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Use Package in normal php project

muarachmann opened this issue · comments

Hi, I have a basic php project that stems for long now, was wondering how I could autoload the classes. I have tried to no avail, the helper functions load but when I run for example geoip()->getLocation(), I get undefined function app(). Equally when I use the class, I get Class 'Torann\GeoIP'. Any help would be greatly appreciated thanks

  "autoload": {
        "psr-4": {
            "Torann\\GeoIP\\": "app/vendor/torann/geoip/src"
        },
        "files": [
            "app/vendor/torann/geoip/src/helpers.php"
        ]
    }

Looks like this is Laravel specific?