File tree Expand file tree Collapse file tree 10 files changed +37
-35
lines changed
Expand file tree Collapse file tree 10 files changed +37
-35
lines changed Original file line number Diff line number Diff line change 1- # GeoIP2 for Laravel 5.2
1+ # GeoIP2 for Laravel 5.2-3
22
3- ## Install
3+ ## Installation
44
5- Via Composer
5+ 1 ) In order to install run the following composer command:
66
77``` bash
8- $ composer require acidreign /laravel-geoip2
8+ composer require talkative /laravel-geoip2
99```
1010
11+ 2 ) Open your ` config/app.php ` and add the following to the ` providers ` array:
12+
1113``` php
12- 'providers' => array(
13- Acidreign\LaravelGeoIP2\GeoIP2ServiceProvider::class,
14- )
14+ Talkative\LaravelGeoIP2\GeoIP2ServiceProvider::class,
1515```
1616
17+ 3 ) In the same config/app.php and add the following to the aliases array:
18+
1719``` php
18- 'aliases' => array(
19- 'GeoIP2' => Acidreign\LaravelGeoIP2\GeoIP2Facade::class,
20- )
20+ 'GeoIP2' => Talkative\LaravelGeoIP2\GeoIP2Facade::class,
2121```
2222
23+ 4 ) Run the command below to publish the package:
24+
2325``` php
24- $ php artisan vendor:publish --provider="Acidreign \LaravelGeoIP2\GeoIP2ServiceProvider"
26+ $ php artisan vendor:publish --provider="Talkative \LaravelGeoIP2\GeoIP2ServiceProvider"
2527```
Original file line number Diff line number Diff line change 11{
2- "name" : " acidreign /laravel-geoip2" ,
2+ "name" : " talkative /laravel-geoip2" ,
33 "description" : " Laravel wrapper for MaxMind GeoIP2" ,
44 "keywords" : [
55 " laravel" ,
1010 "license" : " MIT" ,
1111 "authors" : [
1212 {
13- "name" : " Dave Hennigar " ,
14- "email" : " dave.hennigar@gmail.com "
13+ "name" : " Jakub Srsen " ,
14+ "email" : " jsrsen@talkative.uk "
1515 }
1616 ],
1717 "support" : {
18- "source" : " https://github.com/Acidreign /laravel-geoip2" ,
19- "issues" : " https://github.com/Acidreign /laravel-geoip2/issues"
18+ "source" : " https://github.com/Hornet-Wing /laravel-geoip2" ,
19+ "issues" : " https://github.com/Hornet-Wing /laravel-geoip2/issues"
2020 },
2121 "require" : {
2222 "php" : " >=5.4.0" ,
2323 "geoip2/geoip2" : " ~2.0" ,
24- "guzzlehttp/guzzle" : " ~5 .1" ,
24+ "guzzlehttp/guzzle" : " ~6 .1" ,
2525 "illuminate/config" : " ~4.1|~5.0" ,
2626 "illuminate/http" : " ~4.1|~5.0" ,
2727 "illuminate/support" : " ~4.1|~5.0"
3232 },
3333 "autoload" : {
3434 "psr-4" : {
35- "Acidreign \\ LaravelGeoIP2\\ " : " src/"
35+ "Talkative \\ LaravelGeoIP2\\ " : " src/"
3636 }
3737 },
3838 "autoload-dev" : {
3939 "psr-4" : {
40- "Acidreign \\ LaravelGeoIP2\\ Test\\ " : " tests/"
40+ "Talkative \\ LaravelGeoIP2\\ Test\\ " : " tests/"
4141 }
4242 },
4343 "extra" : {
Original file line number Diff line number Diff line change 11<?php
2- namespace Acidreign \LaravelGeoIP2 \Console ;
2+ namespace Talkative \LaravelGeoIP2 \Console ;
33
44use Illuminate \Config \Repository as Config ;
55use Illuminate \Console \Command ;
6- use Acidreign \LaravelGeoIP2 \GeoIP2Update ;
6+ use Talkative \LaravelGeoIP2 \GeoIP2Update ;
77
88class UpdateCommand extends Command
99{
Original file line number Diff line number Diff line change 11<?php
2- namespace Acidreign \LaravelGeoIP2 ;
2+ namespace Talkative \LaravelGeoIP2 ;
33
44use GeoIp2 \WebService \Client ;
55use Illuminate \Config \Repository as Config ;
66use Illuminate \Http \Request ;
7- use Acidreign \LaravelGeoIP2 \Provider \DatabaseProvider ;
8- use Acidreign \LaravelGeoIP2 \Provider \LocalhostProvider ;
7+ use Talkative \LaravelGeoIP2 \Provider \DatabaseProvider ;
8+ use Talkative \LaravelGeoIP2 \Provider \LocalhostProvider ;
99
1010/**
1111 * Class GeoIP2
1212 *
13- * @package Acidreign \LaravelGeoIP2
13+ * @package Talkative \LaravelGeoIP2
1414 *
1515 * @method \GeoIp2\Model\AnonymousIp anonymousIp(string $ipAddress = null)
1616 * @method \GeoIp2\Model\City city(string $ipAddress = null)
@@ -31,7 +31,7 @@ class GeoIP2
3131 /** @var \GeoIp2\ProviderInterface */
3232 private $ provider ;
3333
34- /** @var \Acidreign \LaravelGeoIP2\Provider\LocalhostProvider */
34+ /** @var \Talkative \LaravelGeoIP2\Provider\LocalhostProvider */
3535 private $ localhostProvider ;
3636
3737 protected $ storagePath ;
Original file line number Diff line number Diff line change 11<?php
2- namespace Acidreign \LaravelGeoIP2 ;
2+ namespace Talkative \LaravelGeoIP2 ;
33
44class GeoIP2Exception extends \Exception
55{
Original file line number Diff line number Diff line change 11<?php
2- namespace Acidreign \LaravelGeoIP2 ;
2+ namespace Talkative \LaravelGeoIP2 ;
33
44use Illuminate \Support \Facades \Facade ;
55
66/**
77 * Class GeoIP2Facade
88 *
9- * @package Acidreign \LaravelGeoIP2
9+ * @package Talkative \LaravelGeoIP2
1010 *
1111 * @method static \GeoIp2\Model\AnonymousIp anonymousIp(string $ipAddress = null)
1212 * @method static \GeoIp2\Model\City city(string $ipAddress = null)
Original file line number Diff line number Diff line change 11<?php
22
3- namespace Acidreign \LaravelGeoIP2 ;
3+ namespace Talkative \LaravelGeoIP2 ;
44
55use Illuminate \Support \ServiceProvider ;
6- use Acidreign \LaravelGeoIP2 \Console \UpdateCommand ;
6+ use Talkative \LaravelGeoIP2 \Console \UpdateCommand ;
77
88class GeoIP2ServiceProvider extends ServiceProvider
99{
Original file line number Diff line number Diff line change 11<?php
2- namespace Acidreign \LaravelGeoIP2 ;
2+ namespace Talkative \LaravelGeoIP2 ;
33
44use GuzzleHttp \Client ;
55use GuzzleHttp \Exception \ClientException ;
Original file line number Diff line number Diff line change 11<?php
2- namespace Acidreign \LaravelGeoIP2 \Provider ;
2+ namespace Talkative \LaravelGeoIP2 \Provider ;
33
44use GeoIp2 \Database \Reader ;
55use GeoIp2 \ProviderInterface ;
6- use Acidreign \LaravelGeoIP2 \GeoIP2Exception ;
6+ use Talkative \LaravelGeoIP2 \GeoIP2Exception ;
77
88class DatabaseProvider implements ProviderInterface
99{
Original file line number Diff line number Diff line change 11<?php
2- namespace Acidreign \LaravelGeoIP2 \Provider ;
2+ namespace Talkative \LaravelGeoIP2 \Provider ;
33
44use GeoIp2 \Model \City ;
55use GeoIp2 \Model \Country ;
You can’t perform that action at this time.
0 commit comments