File tree 11 files changed +31
-38
lines changed 11 files changed +31
-38
lines changed Original file line number Diff line number Diff line change 1
1
The MIT License (MIT)
2
2
3
- Copyright (c) 2014 Phirational s.r.o.
3
+ Copyright (c) 2016 SquidOi LLC
4
4
5
5
Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
of this software and associated documentation files (the "Software"), to deal
Original file line number Diff line number Diff line change 1
1
# GeoIP2 for Laravel
2
2
3
- [ ![ Latest Version] ( https://img.shields.io/github/release/Phirational/laravel-geoip2.svg?style=flat-square )] ( https://github.com/Phirational/laravel-geoip2/releases )
4
- [ ![ Software License] ( https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat-square )] ( LICENSE.md )
5
- [ ![ Build Status] ( https://img.shields.io/travis/Phirational/laravel-geoip2/master.svg?style=flat-square )] ( https://travis-ci.org/Phirational/laravel-geoip2 )
6
- [ ![ Coverage Status] ( https://img.shields.io/scrutinizer/coverage/g/Phirational/laravel-geoip2.svg?style=flat-square )] ( https://scrutinizer-ci.com/g/Phirational/laravel-geoip2/code-structure )
7
- [ ![ Quality Score] ( https://img.shields.io/scrutinizer/g/Phirational/laravel-geoip2.svg?style=flat-square )] ( https://scrutinizer-ci.com/g/Phirational/laravel-geoip2 )
8
- [ ![ Code Climate] ( http://img.shields.io/codeclimate/github/Phirational/laravel-geoip2.svg?style=flat-square )] ( https://codeclimate.com/github/Phirational/laravel-geoip2 )
9
- [ ![ Total Downloads] ( https://img.shields.io/packagist/dt/phirational/laravel-geoip2.svg?style=flat-square )] ( https://packagist.org/packages/phirational/laravel-geoip2 )
10
-
11
-
12
3
## Install
13
4
14
5
Via Composer
15
6
16
7
``` bash
17
- $ composer require phirational /laravel-geoip2
8
+ $ composer require acidreign /laravel-geoip2
18
9
```
19
10
20
11
``` php
21
12
'providers' => array(
22
- 'Phirational \LaravelGeoIP2\GeoIP2ServiceProvider',
13
+ 'Acidreign \LaravelGeoIP2\GeoIP2ServiceProvider',
23
14
)
24
15
```
25
16
26
17
``` php
27
18
'aliases' => array(
28
- 'GeoIP2' => 'Phirational \LaravelGeoIP2\GeoIP2Facade',
19
+ 'GeoIP2' => 'Acidreign \LaravelGeoIP2\GeoIP2Facade',
29
20
)
30
21
```
31
22
32
23
``` php
33
- $ php artisan config:publish phirational /laravel-geoip2
24
+ $ php artisan config:publish acidreign /laravel-geoip2
34
25
```
Original file line number Diff line number Diff line change 1
1
{
2
- "name" : " phirational /laravel-geoip2" ,
2
+ "name" : " acidreign /laravel-geoip2" ,
3
3
"description" : " Laravel wrapper for MaxMind GeoIP2" ,
4
4
"keywords" : [
5
5
" laravel" ,
10
10
"license" : " MIT" ,
11
11
"authors" : [
12
12
{
13
- "name" : " Marek Viger " ,
14
- "email" : " viger@phirational .com"
13
+ "name" : " Dave Hennigar " ,
14
+ "email" : " dave.hennigar@gmail .com"
15
15
}
16
16
],
17
17
"support" : {
18
- "source" : " https://github.com/Phirational /laravel-geoip2" ,
19
- "issues" : " https://github.com/Phirational /laravel-geoip2/issues"
18
+ "source" : " https://github.com/Acidreign /laravel-geoip2" ,
19
+ "issues" : " https://github.com/Acidreign /laravel-geoip2/issues"
20
20
},
21
21
"require" : {
22
22
"php" : " >=5.4.0" ,
32
32
},
33
33
"autoload" : {
34
34
"psr-4" : {
35
- "Phirational \\ LaravelGeoIP2\\ " : " src/"
35
+ "Acidreign \\ LaravelGeoIP2\\ " : " src/"
36
36
}
37
37
},
38
38
"autoload-dev" : {
39
39
"psr-4" : {
40
- "Phirational \\ LaravelGeoIP2\\ Test\\ " : " tests/"
40
+ "Acidreign \\ LaravelGeoIP2\\ Test\\ " : " tests/"
41
41
}
42
42
},
43
43
"extra" : {
Original file line number Diff line number Diff line change 1
1
<?php
2
- namespace Phirational \LaravelGeoIP2 \Console ;
2
+ namespace Acidreign \LaravelGeoIP2 \Console ;
3
3
4
4
use Illuminate \Config \Repository as Config ;
5
5
use Illuminate \Console \Command ;
6
- use Phirational \LaravelGeoIP2 \GeoIP2Update ;
6
+ use Acidreign \LaravelGeoIP2 \GeoIP2Update ;
7
7
8
8
class UpdateCommand extends Command
9
9
{
Original file line number Diff line number Diff line change 1
1
<?php
2
- namespace Phirational \LaravelGeoIP2 ;
2
+ namespace Acidreign \LaravelGeoIP2 ;
3
3
4
4
use GeoIp2 \WebService \Client ;
5
5
use Illuminate \Config \Repository as Config ;
6
6
use Illuminate \Http \Request ;
7
- use Phirational \LaravelGeoIP2 \Provider \DatabaseProvider ;
8
- use Phirational \LaravelGeoIP2 \Provider \LocalhostProvider ;
7
+ use Acidreign \LaravelGeoIP2 \Provider \DatabaseProvider ;
8
+ use Acidreign \LaravelGeoIP2 \Provider \LocalhostProvider ;
9
9
10
10
/**
11
11
* Class GeoIP2
12
12
*
13
- * @package Phirational \LaravelGeoIP2
13
+ * @package Acidreign \LaravelGeoIP2
14
14
*
15
15
* @method \GeoIp2\Model\AnonymousIp anonymousIp(string $ipAddress = null)
16
16
* @method \GeoIp2\Model\City city(string $ipAddress = null)
@@ -31,7 +31,7 @@ class GeoIP2
31
31
/** @var \GeoIp2\ProviderInterface */
32
32
private $ provider ;
33
33
34
- /** @var \Phirational \LaravelGeoIP2\Provider\LocalhostProvider */
34
+ /** @var \Acidreign \LaravelGeoIP2\Provider\LocalhostProvider */
35
35
private $ localhostProvider ;
36
36
37
37
protected $ storagePath ;
Original file line number Diff line number Diff line change 1
1
<?php
2
- namespace Phirational \LaravelGeoIP2 ;
2
+ namespace Acidreign \LaravelGeoIP2 ;
3
3
4
4
class GeoIP2Exception extends \Exception
5
5
{
Original file line number Diff line number Diff line change 1
1
<?php
2
- namespace Phirational \LaravelGeoIP2 ;
2
+ namespace Acidreign \LaravelGeoIP2 ;
3
3
4
4
use Illuminate \Support \Facades \Facade ;
5
5
6
6
/**
7
7
* Class GeoIP2Facade
8
8
*
9
- * @package Phirational \LaravelGeoIP2
9
+ * @package Acidreign \LaravelGeoIP2
10
10
*
11
11
* @method static \GeoIp2\Model\AnonymousIp anonymousIp(string $ipAddress = null)
12
12
* @method static \GeoIp2\Model\City city(string $ipAddress = null)
Original file line number Diff line number Diff line change 1
- <?php namespace Phirational \LaravelGeoIP2 ;
1
+ <?php
2
+
3
+ namespace Acidreign \LaravelGeoIP2 ;
2
4
3
5
use Illuminate \Support \ServiceProvider ;
4
- use Phirational \LaravelGeoIP2 \Console \UpdateCommand ;
6
+ use Acidreign \LaravelGeoIP2 \Console \UpdateCommand ;
5
7
6
8
class GeoIP2ServiceProvider extends ServiceProvider
7
9
{
@@ -19,7 +21,7 @@ class GeoIP2ServiceProvider extends ServiceProvider
19
21
*/
20
22
public function boot ()
21
23
{
22
- $ this ->package ('phirational /laravel-geoip2 ' , null , __DIR__ );
24
+ $ this ->package ('acidreign /laravel-geoip2 ' , null , __DIR__ );
23
25
}
24
26
25
27
/**
Original file line number Diff line number Diff line change 1
1
<?php
2
- namespace Phirational \LaravelGeoIP2 ;
2
+ namespace Acidreign \LaravelGeoIP2 ;
3
3
4
4
use GuzzleHttp \Client ;
5
5
use GuzzleHttp \Exception \ClientException ;
Original file line number Diff line number Diff line change 1
1
<?php
2
- namespace Phirational \LaravelGeoIP2 \Provider ;
2
+ namespace Acidreign \LaravelGeoIP2 \Provider ;
3
3
4
4
use GeoIp2 \Database \Reader ;
5
5
use GeoIp2 \ProviderInterface ;
6
- use Phirational \LaravelGeoIP2 \GeoIP2Exception ;
6
+ use Acidreign \LaravelGeoIP2 \GeoIP2Exception ;
7
7
8
8
class DatabaseProvider implements ProviderInterface
9
9
{
Original file line number Diff line number Diff line change 1
1
<?php
2
- namespace Phirational \LaravelGeoIP2 \Provider ;
2
+ namespace Acidreign \LaravelGeoIP2 \Provider ;
3
3
4
4
use GeoIp2 \Model \City ;
5
5
use GeoIp2 \Model \Country ;
You can’t perform that action at this time.
0 commit comments