Skip to content

Commit 4cd93b6

Browse files
committed
~ Readme instructions
~ Change namespace
1 parent 330be09 commit 4cd93b6

File tree

10 files changed

+37
-35
lines changed

10 files changed

+37
-35
lines changed

README.md

Lines changed: 13 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,27 @@
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
```

composer.json

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "acidreign/laravel-geoip2",
2+
"name": "talkative/laravel-geoip2",
33
"description": "Laravel wrapper for MaxMind GeoIP2",
44
"keywords": [
55
"laravel",
@@ -10,18 +10,18 @@
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"
@@ -32,12 +32,12 @@
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": {

src/Console/UpdateCommand.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
<?php
2-
namespace Acidreign\LaravelGeoIP2\Console;
2+
namespace Talkative\LaravelGeoIP2\Console;
33

44
use Illuminate\Config\Repository as Config;
55
use Illuminate\Console\Command;
6-
use Acidreign\LaravelGeoIP2\GeoIP2Update;
6+
use Talkative\LaravelGeoIP2\GeoIP2Update;
77

88
class UpdateCommand extends Command
99
{

src/GeoIP2.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
<?php
2-
namespace Acidreign\LaravelGeoIP2;
2+
namespace Talkative\LaravelGeoIP2;
33

44
use GeoIp2\WebService\Client;
55
use Illuminate\Config\Repository as Config;
66
use 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;

src/GeoIP2Exception.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?php
2-
namespace Acidreign\LaravelGeoIP2;
2+
namespace Talkative\LaravelGeoIP2;
33

44
class GeoIP2Exception extends \Exception
55
{

src/GeoIP2Facade.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
<?php
2-
namespace Acidreign\LaravelGeoIP2;
2+
namespace Talkative\LaravelGeoIP2;
33

44
use 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)

src/GeoIP2ServiceProvider.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
<?php
22

3-
namespace Acidreign\LaravelGeoIP2;
3+
namespace Talkative\LaravelGeoIP2;
44

55
use Illuminate\Support\ServiceProvider;
6-
use Acidreign\LaravelGeoIP2\Console\UpdateCommand;
6+
use Talkative\LaravelGeoIP2\Console\UpdateCommand;
77

88
class GeoIP2ServiceProvider extends ServiceProvider
99
{

src/GeoIP2Update.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?php
2-
namespace Acidreign\LaravelGeoIP2;
2+
namespace Talkative\LaravelGeoIP2;
33

44
use GuzzleHttp\Client;
55
use GuzzleHttp\Exception\ClientException;

src/Provider/DatabaseProvider.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
<?php
2-
namespace Acidreign\LaravelGeoIP2\Provider;
2+
namespace Talkative\LaravelGeoIP2\Provider;
33

44
use GeoIp2\Database\Reader;
55
use GeoIp2\ProviderInterface;
6-
use Acidreign\LaravelGeoIP2\GeoIP2Exception;
6+
use Talkative\LaravelGeoIP2\GeoIP2Exception;
77

88
class DatabaseProvider implements ProviderInterface
99
{

src/Provider/LocalhostProvider.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?php
2-
namespace Acidreign\LaravelGeoIP2\Provider;
2+
namespace Talkative\LaravelGeoIP2\Provider;
33

44
use GeoIp2\Model\City;
55
use GeoIp2\Model\Country;

0 commit comments

Comments
 (0)