Skip to content

Commit 08e200c

Browse files
committed
#4 Change namespace from Torann to InteractionDesignFoundation
1 parent 75ad188 commit 08e200c

25 files changed

+71
-79
lines changed

README.md

Lines changed: 13 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,34 +1,32 @@
11
# GeoIP for Laravel
22

3-
[![Build Status](https://travis-ci.org/Torann/laravel-geoip.svg?branch=master)](https://travis-ci.org/Torann/laravel-geoip)
4-
[![Latest Stable Version](https://poser.pugx.org/torann/geoip/v/stable.png)](https://packagist.org/packages/torann/geoip)
5-
[![Total Downloads](https://poser.pugx.org/torann/geoip/downloads.png)](https://packagist.org/packages/torann/geoip)
6-
[![Patreon donate button](https://img.shields.io/badge/patreon-donate-yellow.svg)](https://www.patreon.com/torann)
7-
[![Donate weekly to this project using Gratipay](https://img.shields.io/badge/gratipay-donate-yellow.svg)](https://gratipay.com/~torann)
8-
[![Donate to this project using Flattr](https://img.shields.io/badge/flattr-donate-yellow.svg)](https://flattr.com/profile/torann)
9-
[![Donate to this project using Paypal](https://img.shields.io/badge/Donate-PayPal-green.svg)](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=4CJA2A97NPYVU)
3+
[![Latest Stable Version](https://poser.pugx.org/interaction-design-foundation/laravel-geoip/v/stable.png)](https://packagist.org/packages/interaction-design-foundation/laravel-geoip)
4+
[![Total Downloads](https://poser.pugx.org/interaction-design-foundation/laravel-geoip/downloads.png)](https://packagist.org/packages/interaction-design-foundation/laravel-geoip)
105

116
Determine the geographical location and currency of website visitors based on their IP addresses.
127

13-
- [GeoIP for Laravel on Packagist](https://packagist.org/packages/torann/geoip)
14-
- [GeoIP for Laravel on GitHub](https://github.com/Torann/laravel-geoip)
15-
- [Upgrade Guides](http://lyften.com/projects/laravel-geoip/doc/upgrade.html)
168

17-
## Official Documentation
9+
## Installation
10+
11+
You can install the package in to a Laravel app that uses [Nova](https://nova.laravel.com) via composer:
12+
13+
```bash
14+
composer require interaction-design-foundation/laravel-geoip
15+
```
1816

19-
Documentation for the package can be found on [Lyften.com](http://lyften.com/projects/laravel-geoip/).
2017

21-
## Older versions of Laravel
18+
## Official Documentation
19+
20+
@todo
2221

23-
- Laravel 5 [version 1.1](https://github.com/Torann/laravel-geoip/tree/1.1)
24-
- Laravel 4 [version 0.1.1](https://github.com/Torann/laravel-geoip/tree/0.1.1)
2522

2623
## Contributions
2724

2825
Many people have contributed to project since its inception.
2926

3027
Thanks to:
3128

29+
- [Daniel Stainback](https://github.com/InteractionDesignFoundation)
3230
- [Dwight Watson](https://github.com/dwightwatson)
3331
- [nikkiii](https://github.com/nikkiii)
3432
- [jeffhennis](https://github.com/jeffhennis)

composer.json

Lines changed: 5 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "torann/geoip",
2+
"name": "interaction-design-foundation/laravel-geoip",
33
"description": "Support for multiple GeoIP services.",
44
"keywords": [
55
"laravel",
@@ -11,12 +11,6 @@
1111
"infoDB"
1212
],
1313
"license": "BSD-2-Clause",
14-
"authors": [
15-
{
16-
"name": "Daniel Stainback",
17-
"email": "[email protected]"
18-
}
19-
],
2014
"require": {
2115
"php": "^8.0|^8.1",
2216
"illuminate/support": "^8.0",
@@ -40,15 +34,15 @@
4034
"src/helpers.php"
4135
],
4236
"psr-4": {
43-
"Torann\\GeoIP\\": "src/"
37+
"InteractionDesignFoundation\\GeoIP\\": "src/"
4438
}
4539
},
4640
"autoload-dev": {
4741
"files": [
4842
"tests/TestFunctions.php"
4943
],
5044
"psr-4": {
51-
"Torann\\GeoIP\\Tests\\": "tests/"
45+
"InteractionDesignFoundation\\GeoIP\\Tests\\": "tests/"
5246
}
5347
},
5448
"scripts": {
@@ -62,10 +56,10 @@
6256
},
6357
"laravel": {
6458
"providers": [
65-
"Torann\\GeoIP\\GeoIPServiceProvider"
59+
"InteractionDesignFoundation\\GeoIP\\GeoIPServiceProvider"
6660
],
6761
"aliases": {
68-
"GeoIP": "Torann\\GeoIP\\Facades\\GeoIP"
62+
"GeoIP": "InteractionDesignFoundation\\GeoIP\\Facades\\GeoIP"
6963
}
7064
}
7165
}

config/geoip.php

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -52,43 +52,43 @@
5252
'services' => [
5353

5454
'maxmind_database' => [
55-
'class' => \Torann\GeoIP\Services\MaxMindDatabase::class,
55+
'class' => \InteractionDesignFoundation\GeoIP\Services\MaxMindDatabase::class,
5656
'database_path' => storage_path('app/geoip.mmdb'),
5757
'update_url' => sprintf('https://download.maxmind.com/app/geoip_download?edition_id=GeoLite2-City&license_key=%s&suffix=tar.gz', env('MAXMIND_LICENSE_KEY')),
5858
'locales' => ['en'],
5959
],
6060

6161
'maxmind_api' => [
62-
'class' => \Torann\GeoIP\Services\MaxMindWebService::class,
62+
'class' => \InteractionDesignFoundation\GeoIP\Services\MaxMindWebService::class,
6363
'user_id' => env('MAXMIND_USER_ID'),
6464
'license_key' => env('MAXMIND_LICENSE_KEY'),
6565
'locales' => ['en'],
6666
],
6767

6868
'ipapi' => [
69-
'class' => \Torann\GeoIP\Services\IPApi::class,
69+
'class' => \InteractionDesignFoundation\GeoIP\Services\IPApi::class,
7070
'secure' => true,
7171
'key' => env('IPAPI_KEY'),
7272
'continent_path' => storage_path('app/continents.json'),
7373
'lang' => 'en',
7474
],
7575

7676
'ipgeolocation' => [
77-
'class' => \Torann\GeoIP\Services\IPGeoLocation::class,
77+
'class' => \InteractionDesignFoundation\GeoIP\Services\IPGeoLocation::class,
7878
'secure' => true,
7979
'key' => env('IPGEOLOCATION_KEY'),
8080
'continent_path' => storage_path('app/continents.json'),
8181
'lang' => 'en',
8282
],
8383

8484
'ipdata' => [
85-
'class' => \Torann\GeoIP\Services\IPData::class,
85+
'class' => \InteractionDesignFoundation\GeoIP\Services\IPData::class,
8686
'key' => env('IPDATA_API_KEY'),
8787
'secure' => true,
8888
],
8989

9090
'ipfinder' => [
91-
'class' => \Torann\GeoIP\Services\IPFinder::class,
91+
'class' => \InteractionDesignFoundation\GeoIP\Services\IPFinder::class,
9292
'key' => env('IPFINDER_API_KEY'),
9393
'secure' => true,
9494
'locales' => ['en'],
@@ -124,7 +124,7 @@
124124
|
125125
*/
126126

127-
'cache_tags' => ['torann-geoip-location'],
127+
'cache_tags' => ['laravel-geoip-location'],
128128

129129
/*
130130
|--------------------------------------------------------------------------

src/Cache.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22

3-
namespace Torann\GeoIP;
3+
namespace InteractionDesignFoundation\GeoIP;
44

55
use Illuminate\Cache\CacheManager;
66

src/Console/Clear.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22

3-
namespace Torann\GeoIP\Console;
3+
namespace InteractionDesignFoundation\GeoIP\Console;
44

55
use Illuminate\Console\Command;
66

src/Console/Update.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22

3-
namespace Torann\GeoIP\Console;
3+
namespace InteractionDesignFoundation\GeoIP\Console;
44

55
use Illuminate\Console\Command;
66

src/Contracts/ServiceInterface.php

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

3-
namespace Torann\GeoIP\Contracts;
3+
namespace InteractionDesignFoundation\GeoIP\Contracts;
44

55
interface ServiceInterface
66
{
@@ -17,7 +17,7 @@ public function boot();
1717
*
1818
* @param string $ip
1919
*
20-
* @return \Torann\GeoIP\Location
20+
* @return \InteractionDesignFoundation\GeoIP\Location
2121
*/
2222
public function locate($ip);
2323

@@ -26,7 +26,7 @@ public function locate($ip);
2626
*
2727
* @param array $attributes
2828
*
29-
* @return \Torann\GeoIP\Location
29+
* @return \InteractionDesignFoundation\GeoIP\Location
3030
*/
3131
public function hydrate(array $attributes = []);
3232

src/Facades/GeoIP.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22

3-
namespace Torann\GeoIP\Facades;
3+
namespace InteractionDesignFoundation\GeoIP\Facades;
44

55
use Illuminate\Support\Facades\Facade;
66

src/GeoIP.php

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

3-
namespace Torann\GeoIP;
3+
namespace InteractionDesignFoundation\GeoIP;
44

55
use Exception;
66
use Monolog\Logger;
@@ -106,7 +106,7 @@ public function __construct(array $config, CacheManager $cache)
106106
*
107107
* @param string $ip
108108
*
109-
* @return \Torann\GeoIP\Location
109+
* @return \InteractionDesignFoundation\GeoIP\Location
110110
* @throws \Exception
111111
*/
112112
public function getLocation($ip = null)
@@ -127,7 +127,7 @@ public function getLocation($ip = null)
127127
*
128128
* @param string $ip
129129
*
130-
* @return \Torann\GeoIP\Location
130+
* @return \InteractionDesignFoundation\GeoIP\Location
131131
* @throws \Exception
132132
*/
133133
private function find($ip = null)
@@ -188,7 +188,7 @@ public function getCurrency($iso)
188188
/**
189189
* Get service instance.
190190
*
191-
* @return \Torann\GeoIP\Contracts\ServiceInterface
191+
* @return \InteractionDesignFoundation\GeoIP\Contracts\ServiceInterface
192192
* @throws Exception
193193
*/
194194
public function getService()
@@ -215,7 +215,7 @@ public function getService()
215215
/**
216216
* Get cache instance.
217217
*
218-
* @return \Torann\GeoIP\Cache
218+
* @return \InteractionDesignFoundation\GeoIP\Cache
219219
*/
220220
public function getCache()
221221
{

src/GeoIPServiceProvider.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22

3-
namespace Torann\GeoIP;
3+
namespace InteractionDesignFoundation\GeoIP;
44

55
use Illuminate\Support\Str;
66
use Illuminate\Support\ServiceProvider;

0 commit comments

Comments
 (0)