Skip to content

Commit 7e2dfa1

Browse files
committed
Add package migration guide
1 parent e3b43b5 commit 7e2dfa1

File tree

2 files changed

+20
-2
lines changed

2 files changed

+20
-2
lines changed

README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,10 @@ Determine the geographical location and currency of website visitors based on th
1212
## About this fork
1313

1414
We have forked [Torann/laravel-geoip](https://github.com/Torann/laravel-geoip) as it’s almost not actively maintained anymore.
15-
This fork works with modern PHP versions only (8.1+).
15+
This fork works with modern PHP versions only (8.0+).
1616
Also, as for any InteractionDesignFoundation project, we are going to improving code quality by using types, static analysers, tests and linters.
17-
But don’t worry, we are following SemVer 2.0.
17+
18+
But don’t worry, we are following SemVer 2.0. The [package migration is straightforward](./docs/migration.md).
1819

1920

2021
## Installation

docs/migration.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# Migration
2+
To migrate from `torann/geoip` you simply need to :
3+
4+
1. change your composer.json:
5+
```diff
6+
-"torann/geoip": "^3.0",
7+
+"interaction-design-foundation/laravel-geoip": "^3.1",
8+
```
9+
10+
2. update namespaces in your application:
11+
```diff
12+
- use Torann\GeoIP;
13+
- use Torann\Location;
14+
15+
+ use InteractionDesignFoundation\GeoIP;
16+
+ use InteractionDesignFoundation\Location;
17+
```

0 commit comments

Comments
 (0)