Skip to content

Commit 94f00a4

Browse files
authored
Merge pull request #21 from InteractionDesignFoundation/update-dependencies
Update dependencies, remove Lumen support
2 parents 4a7e53b + c09855a commit 94f00a4

21 files changed

+163
-193
lines changed

.github/workflows/run-tests.yml

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,9 @@ jobs:
88
strategy:
99
fail-fast: true
1010
matrix:
11-
php: [8.2, 8.1, 8.0]
12-
laravel: [^10.0, ^9.0]
11+
php: [8.3, 8.2, 8.1]
12+
laravel: [^10.0]
1313
dependencies: [lowest, highest]
14-
exclude:
15-
- php: 8.0
16-
laravel: ^10.0
1714

1815
name: P${{ matrix.php }} | L${{ matrix.laravel }} | ${{ matrix.dependencies == 'highest' && '↑' || '↓' }}
1916

.github/workflows/static-analysis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121
- name: Setup PHP
2222
uses: shivammathur/setup-php@v2
2323
with:
24-
php-version: 8.2
24+
php-version: 8.3
2525
coverage: none
2626
env:
2727
COMPOSER_TOKEN: ${{ secrets.GITHUB_TOKEN }}

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,10 @@ Determine the geographical location and currency of website visitors based on th
1111

1212
## About this fork
1313

14-
We have forked [Torann/laravel-geoip](https://github.com/Torann/laravel-geoip) as it’s almost not maintained anymore.
15-
This fork works with modern PHP versions only (8.0+).
14+
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+).
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 using SemVer 2.0.
17+
But don’t worry, we are following SemVer 2.0.
1818

1919

2020
## Installation
@@ -121,7 +121,7 @@ Please see [CONTRIBUTING](.github/CONTRIBUTING.md) for details.
121121

122122
## Contributions
123123

124-
Many people have contributed to project since its inception.
124+
Many people have contributed to the project since its inception.
125125

126126
Thanks to:
127127

composer.json

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -12,18 +12,18 @@
1212
"infoDB"
1313
],
1414
"require": {
15-
"php": "^8.0",
16-
"illuminate/cache": "^9.0 || ^10.0",
17-
"illuminate/console": "^9.0 || ^10.0",
18-
"illuminate/support": "^9.0 || ^10.0"
15+
"php": "^8.1",
16+
"illuminate/cache": "^10.0 || ^11.0",
17+
"illuminate/console": "^10.0 || ^11.0",
18+
"illuminate/support": "^10.0 || ^11.0"
1919
},
2020
"require-dev": {
2121
"geoip2/geoip2": "^2.11",
22-
"mockery/mockery": "^1.4",
23-
"phpstan/phpstan": "^1.2",
24-
"phpunit/phpunit": "^9.6 || ^10.0",
25-
"squizlabs/php_codesniffer": "^3.6",
26-
"vimeo/psalm": "^5.7",
22+
"mockery/mockery": "^1.6",
23+
"phpstan/phpstan": "^1.10",
24+
"phpunit/phpunit": "^10.5 || ^11.0",
25+
"squizlabs/php_codesniffer": "^3.9",
26+
"vimeo/psalm": "^5.22",
2727
"vlucas/phpdotenv": "^5.4"
2828
},
2929
"suggest": {

config/geoip.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@
131131
| Cache Expiration
132132
|--------------------------------------------------------------------------
133133
|
134-
| Define how long cached location are valid.
134+
| Cache's time to live in seconds.
135135
|
136136
*/
137137

docs/services.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@
44

55
⚠️ Before using MaxMind driver, you must install the `geoip2/geoip2` package using the Composer package manager.
66

7-
The database location to used is specified in the config file in the "services" section under maxmind_database.
7+
The database location to use is specified in the config file in the "services" section under maxmind_database.
88
Along with the URL of where to download the database from when running the php artisan geoip:update.
9-
Note: The `geoip:update` command will need to be ran before the package will work.
9+
Note: The `geoip:update` command will need to be run before the package will work.
1010

1111
```php
1212
'service' => 'maxmind_database',

phpunit.xml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
3-
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/10.0/phpunit.xsd"
3+
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/10.5/phpunit.xsd"
44
backupGlobals="false"
55
bootstrap="vendor/autoload.php"
66
colors="true"
77
processIsolation="false"
88
stopOnFailure="false">
9-
<coverage>
10-
<include>
11-
<directory suffix=".php">src/</directory>
12-
</include>
13-
</coverage>
149
<testsuites>
1510
<testsuite name="GeoIP Package Test Suite">
1611
<directory>./tests</directory>
1712
</testsuite>
1813
</testsuites>
14+
<source>
15+
<include>
16+
<directory suffix=".php">src/</directory>
17+
</include>
18+
</source>
1919
</phpunit>

0 commit comments

Comments
 (0)