Skip to content

Commit fb321dd

Browse files
committed
moving from spatie to bergstar
1 parent beb3afb commit fb321dd

10 files changed

+25
-20
lines changed

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
/vendor
22
composer.phar
33
composer.lock
4+
.idea/

README.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ Geocoder::getCoordinatesForAddress('Samberstraat 69, Antwerpen, Belgium');
3636
You can install this package through composer.
3737

3838
```bash
39-
composer require spatie/geocoder
39+
composer require bergstar/geocoder
4040
```
4141
## Laravel installation
4242

@@ -48,22 +48,22 @@ In Laravel 5.5 the package will autoregister itself. In older versions of Larave
4848
// config/app.php
4949
'providers' => [
5050
'...',
51-
Spatie\Geocoder\GeocoderServiceProvider::class
51+
Bergstar\Geocoder\GeocoderServiceProvider::class
5252
];
5353
```
5454

5555
```php
5656
// config/app.php
5757
'aliases' => array(
5858
...
59-
'Geocoder' => Spatie\Geocoder\Facades\Geocoder::class,
59+
'Geocoder' => Bergstar\Geocoder\Facades\Geocoder::class,
6060
)
6161
```
6262

6363
Next, you must publish the config file :
6464

6565
```bash
66-
php artisan vendor:publish --provider="Spatie\Geocoder\GeocoderServiceProvider" --tag="config"
66+
php artisan vendor:publish --provider="Bergstar\Geocoder\GeocoderServiceProvider" --tag="config"
6767
```
6868

6969
This is the content of the config file:

composer.json

+10-6
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
2-
"name": "spatie/geocoder",
2+
"name": "bergstar/geocoder",
33
"description": "Geocoding addresses to coordinates",
4-
"homepage": "https://github.com/spatie/geocoder",
4+
"homepage": "https://github.com/bergstar/geocoder",
55
"keywords":
66
[
77
"geocode",
@@ -12,6 +12,10 @@
1212
],
1313
"license": "MIT",
1414
"authors": [
15+
{
16+
"name": "Dmitry K Valberg",
17+
"email": "[email protected]"
18+
},
1519
{
1620
"name": "Freek Van der Herten",
1721
"email": "[email protected]"
@@ -29,12 +33,12 @@
2933
},
3034
"autoload": {
3135
"psr-4": {
32-
"Spatie\\Geocoder\\": "src"
36+
"Bergstar\\Geocoder\\": "src"
3337
}
3438
},
3539
"autoload-dev": {
3640
"psr-4": {
37-
"Spatie\\Geocoder\\Tests\\": "tests"
41+
"Bergstar\\Geocoder\\Tests\\": "tests"
3842
}
3943
},
4044
"scripts": {
@@ -44,10 +48,10 @@
4448
"extra": {
4549
"laravel": {
4650
"providers": [
47-
"Spatie\\Geocoder\\GeocoderServiceProvider"
51+
"Bergstar\\Geocoder\\GeocoderServiceProvider"
4852
],
4953
"aliases": {
50-
"Geocoder": "Spatie\\Geocoder\\Facades\\Geocoder"
54+
"Geocoder": "Bergstar\\Geocoder\\Facades\\Geocoder"
5155
}
5256
}
5357
}

phpunit.xml.dist

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
processIsolation="false"
1111
stopOnFailure="false">
1212
<testsuites>
13-
<testsuite name="Spatie Test Suite">
13+
<testsuite name="Bergstar Test Suite">
1414
<directory>tests</directory>
1515
</testsuite>
1616
</testsuites>

src/Exceptions/CouldNotGeocode.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22

3-
namespace Spatie\Geocoder\Exceptions;
3+
namespace Bergstar\Geocoder\Exceptions;
44

55
use Exception;
66

src/Facades/Geocoder.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22

3-
namespace Spatie\Geocoder\Facades;
3+
namespace Bergstar\Geocoder\Facades;
44

55
use Illuminate\Support\Facades\Facade;
66

src/Geocoder.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
<?php
22

3-
namespace Spatie\Geocoder;
3+
namespace Bergstar\Geocoder;
44

55
use GuzzleHttp\Client;
6-
use Spatie\Geocoder\Exceptions\CouldNotGeocode;
6+
use Bergstar\Geocoder\Exceptions\CouldNotGeocode;
77

88
class Geocoder
99
{

src/GeocoderServiceProvider.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22

3-
namespace Spatie\Geocoder;
3+
namespace Bergstar\Geocoder;
44

55
use GuzzleHttp\Client;
66
use Illuminate\Support\ServiceProvider;

tests/GeocoderTest.php

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
<?php
22

3-
namespace Spatie\Geocoder\Tests;
3+
namespace Bergstar\Geocoder\Tests;
44

55
use GuzzleHttp\Client;
6-
use Spatie\Geocoder\Geocoder;
6+
use Bergstar\Geocoder\Geocoder;
77

88
class GeocoderTest extends TestCase
99
{
10-
/** @var \Spatie\Geocoder\Geocoder */
10+
/** @var \Bergstar\Geocoder\Geocoder */
1111
protected $geocoder;
1212

1313
public function setUp()

tests/TestCase.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22

3-
namespace Spatie\Geocoder\Tests;
3+
namespace Bergstar\Geocoder\Tests;
44

55
use Dotenv\Dotenv;
66
use PHPUnit\Framework\TestCase as PHPUnitTestCase;

0 commit comments

Comments
 (0)