Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
219 commits
Select commit Hold shift + click to select a range
a87e882
Test on 8.1
oschwald Dec 15, 2021
93e0d0d
Merge pull request #184 from maxmind/greg/8.1
horgh Dec 15, 2021
663f271
Update README.md (#182)
christophermluna Dec 17, 2021
770f2b4
Rename web service products
oschwald Jan 11, 2022
74dd49f
Switch submodule to https://
oschwald Jan 11, 2022
a184294
Merge pull request #186 from maxmind/greg/product-renaming
horgh Jan 12, 2022
50bfb46
Update jsonSerialize return type. Closes #185
oschwald Jan 13, 2022
d78fdf6
Merge pull request #187 from maxmind/greg/fix-json-serialize-return-type
ugexe Jan 14, 2022
1c60af2
Run new php-cs-fixer against the code
oschwald Jan 14, 2022
7598c36
Merge pull request #188 from maxmind/greg/new-php-cs-fixer
ugexe Jan 14, 2022
0e5d182
Revert "Update jsonSerialize return type. Closes #185"
oschwald Jan 21, 2022
b6667d8
Merge pull request #189 from maxmind/revert-187-greg/fix-json-seriali…
ugexe Jan 22, 2022
e157043
Update .gitattributes
reedy Feb 1, 2022
cc52ea4
Merge pull request #190 from reedy/patch-1
oschwald Feb 1, 2022
b4ca806
Document consumer_privacy_network user type
oschwald Mar 4, 2022
a3048d0
Merge pull request #191 from maxmind/greg/new-user-type
horgh Mar 8, 2022
a8587db
Remove unnecessary directive
horgh May 2, 2022
27e564d
Merge pull request #193 from maxmind/horgh/lint
oschwald May 2, 2022
7648b11
Stop concatenating strings together to get full class name
oschwald Aug 4, 2022
721ba99
Merge pull request #195 from maxmind/greg/no-stringy-class-names
faktas2 Aug 5, 2022
1308807
Set release date
oschwald Aug 5, 2022
155e238
Upgrade Box
oschwald Aug 5, 2022
2d70d58
Upgrade phpDocumentor
oschwald Aug 5, 2022
6a41d8f
Update for v2.13.0
oschwald Aug 5, 2022
35b9023
Merge pull request #196 from maxmind/greg/release
faktas2 Aug 8, 2022
77083e8
Fix incorrect whitespace
oschwald Aug 23, 2022
6f5d593
Merge pull request #197 from maxmind/greg/fix-lint
faktas2 Aug 23, 2022
609dbc5
Use Dependabot to update GitHub Actions
oschwald Aug 29, 2022
60c83e7
Merge pull request #198 from maxmind/greg/dependabot-actions
faktas2 Aug 30, 2022
ada8682
Bump actions/checkout from 2 to 3
dependabot[bot] Aug 30, 2022
1698517
Merge pull request #199 from maxmind/dependabot/github_actions/action…
oschwald Aug 30, 2022
41ee731
Run new version of php-cs-fixer against code
oschwald Sep 6, 2022
4168c25
Merge pull request #200 from maxmind/greg/fix-lint
horgh Sep 6, 2022
3ea54cc
Use more specific reader variable names
ravage84 Nov 15, 2022
172f885
Merge pull request #203 from ravage84/patch-1
oschwald Nov 28, 2022
fcab403
Check IP address before making WS request
oschwald Nov 28, 2022
a02b5d5
Require PHP 8+
oschwald Nov 28, 2022
dc4e1fd
Use typed properties
oschwald Nov 28, 2022
2a2ceed
Merge pull request #204 from maxmind/greg/ip-check
faktas2 Nov 29, 2022
4621ba4
Use str_contains instead of strpos
horgh May 28, 2023
f3b5290
Bump copyright year
horgh May 28, 2023
f412f33
Merge pull request #210 from maxmind/horgh/lint
faktas2 May 29, 2023
5f08629
Document new Satellite connection type value
oschwald Jul 26, 2023
543732f
Merge pull request #212 from maxmind/greg/satellite-connection-type
shadromani Jul 27, 2023
7f03717
Link to API docs
horgh Sep 1, 2023
897983d
Document using the sandbox
horgh Sep 1, 2023
b494c66
Bump actions/checkout from 3 to 4
dependabot[bot] Sep 5, 2023
9de2f55
Merge pull request #213 from maxmind/horgh/sandbox
faktas2 Sep 5, 2023
b088f1f
Merge pull request #214 from maxmind/dependabot/github_actions/action…
oschwald Sep 5, 2023
cae01a2
Run new php-cs-fixer
horgh Sep 14, 2023
6253fd8
Merge pull request #215 from maxmind/horgh/lint
ugexe Sep 15, 2023
66cdedf
Update docs and test for connection_type in web service
oschwald Oct 18, 2023
b76c914
Merge pull request #216 from maxmind/greg/ws-connection-type
faktas2 Oct 20, 2023
a463af1
Drop 8.0 support. Test on 8.2.
oschwald Oct 31, 2023
37774da
Use readonly properties
oschwald Oct 30, 2023
4337056
Only include set fields in jsonSerlialize output
oschwald Oct 30, 2023
5aaf992
Upgrade to phpunit 10
oschwald Oct 31, 2023
826b90e
Use vendor/autoload.php to bootstrap directly
oschwald Oct 31, 2023
9dbb207
Do not include name in JSON output
oschwald Oct 31, 2023
dc20c43
Make ipAddress and network nullable
oschwald Oct 31, 2023
442d0a2
Move docs to the properties
oschwald Oct 31, 2023
59aab5d
Remove deprecated properties
oschwald Oct 31, 2023
e1a9261
Remove unused elements
oschwald Nov 6, 2023
441034b
Merge pull request #217 from maxmind/greg/readonly-properties
faktas2 Nov 6, 2023
1c95252
Update submodule
oschwald Nov 30, 2023
0650a70
Add isAnycast property to Traits
oschwald Nov 30, 2023
7a981f9
Merge pull request #218 from maxmind/greg/is-anycast
horgh Dec 1, 2023
e91890b
Update maxmind-db/reader dependency
oschwald Dec 4, 2023
cd63216
Update box and phpDocumentor
oschwald Dec 4, 2023
40783cb
Set release date
oschwald Dec 4, 2023
1ca1c06
Add .phpunit.cache to .gitignore
oschwald Dec 4, 2023
1a802ce
Update for v3.0.0
oschwald Dec 4, 2023
7befba8
Merge pull request #219 from maxmind/greg/3.0.0
horgh Dec 4, 2023
45b88f7
Run new php-cs-fixer
oschwald Jan 2, 2024
ffe95d4
Reflow some text
oschwald Jan 2, 2024
f545fe9
Work around php-cs-fixer breakage
oschwald Jan 5, 2024
0db2cc8
Run latest php-cs-fixer
oschwald Jan 5, 2024
356989c
Merge pull request #220 from maxmind/greg/fix-lints
horgh Jan 5, 2024
87f439a
Run new php-cs-fixer against code
oschwald Jan 22, 2024
bf62c41
Merge pull request #221 from maxmind/greg/fix-lints
horgh Jan 22, 2024
67934d0
Run new php-cs-fixer against code
oschwald Apr 2, 2024
112eccf
Merge pull request #223 from maxmind/greg/fix-lints
faktas2 Apr 2, 2024
dfebf9e
Run composer validate from lint workflow
oschwald Apr 8, 2024
e6f16f3
Merge pull request #224 from maxmind/greg/composer-validate
faktas2 Apr 9, 2024
2c7a030
Remove mention of tronovav/geoip2-update
oschwald May 2, 2024
4fc87b3
Merge pull request #225 from maxmind/greg/remove-geoip2-update
NajiObeid May 2, 2024
991faa7
Run latest version of php-cs-fixer
oschwald Jun 17, 2024
279446f
Merge pull request #229 from maxmind/greg/run-php-cs-fixer
faktas2 Jun 17, 2024
a0a1f60
Test on newer PHP versions
oschwald Nov 14, 2024
405d213
Update config for phpstan 2.0
oschwald Nov 14, 2024
de26fc2
Require newer dep versions
oschwald Nov 14, 2024
440822e
Remove outdated PHP_VERSION check
oschwald Nov 14, 2024
780a572
Improve PHPStan type hints
oschwald Nov 14, 2024
4639bab
Get rid of pointless null checks
oschwald Nov 14, 2024
6454764
Add changes entry for implicit nullable. Closes #230
oschwald Nov 14, 2024
df7be93
Update release year
oschwald Nov 15, 2024
c56b6fc
Update release dependencies
oschwald Nov 15, 2024
42f2249
Set release date
oschwald Nov 15, 2024
ecbdafc
Ignore .php-cs-fixer.cache
oschwald Nov 15, 2024
c86fbea
Update for v3.1.0
oschwald Nov 15, 2024
ae7bc7b
Merge pull request #231 from maxmind/greg/release
horgh Nov 15, 2024
6413def
Run newest php-cs-fixer against code
oschwald Dec 2, 2024
da54795
Merge pull request #232 from maxmind/greg/fix-lint
horgh Dec 2, 2024
955a23d
integrate zizmor in github actions
NajiObeid Jan 3, 2025
40ab1a1
change zizmor output format to report warnings
NajiObeid Jan 8, 2025
aa4cf39
Merge pull request #233 from maxmind/nobeid/github-actions-zizmor
ugexe Jan 10, 2025
aba0367
Fix typo
oschwald Jan 13, 2025
ce3406e
Deprecate metro code
oschwald Jan 13, 2025
3ed5fca
Merge pull request #234 from maxmind/greg/eng-1001-mark-metro-code-da…
horgh Jan 13, 2025
2d5d7d7
update zizmor to verson 1.2.2
NajiObeid Jan 24, 2025
7913db4
Merge pull request #235 from maxmind/nobeid/uhu-537-improve-zizmor-ac…
faktas2 Jan 29, 2025
e84782c
update zizmor to verson 1.3.0
NajiObeid Feb 7, 2025
c3460f1
Merge pull request #236 from maxmind/nobeid/uhu-630-zizmor-is-updated…
marselester Feb 7, 2025
31e624b
update zizmor to verson 1.3.1
NajiObeid Feb 12, 2025
728a280
Merge pull request #237 from maxmind/nobeid/uhu-648-zizmor-is-updated…
mmpnelson Feb 14, 2025
f1a225e
Run new version of php-cs-fixer
oschwald Feb 24, 2025
7d543b5
Merge pull request #238 from maxmind/greg/eng-1368-php-repo-lints-are…
horgh Feb 24, 2025
0b9062d
update zizmor to verson 1.5.1
ugexe Mar 20, 2025
4e8a4ce
Merge pull request #241 from maxmind/nlogan/uhu-779-zizmor-is-updated…
faktas2 Mar 21, 2025
037c478
update zizmor to verson 1.5.2
NajiObeid Apr 16, 2025
186ee54
Merge pull request #242 from maxmind/nobeid/uhu-903-zizmor-is-updated…
marselester Apr 16, 2025
35affc8
Update submodule
oschwald Apr 21, 2025
24bf3db
Add support for Anonymous Plus
oschwald Apr 21, 2025
001cc47
Document BadMethodCallException exception
oschwald Apr 21, 2025
241ba98
Take advantage of some newer PHP features
oschwald Apr 21, 2025
0b21493
Merge pull request #243 from maxmind/greg/eng-1813
faktas2 Apr 21, 2025
4184347
Bump astral-sh/setup-uv from 5 to 6
dependabot[bot] Apr 25, 2025
b78a44c
Merge pull request #244 from maxmind/dependabot/github_actions/astral…
oschwald Apr 25, 2025
9487696
Bump copyright dates
oschwald May 5, 2025
338b5ff
Set release date
oschwald May 5, 2025
1c46517
Update maxmind-db/reader
oschwald May 5, 2025
60c5325
Update box and phpDocumentor
oschwald May 5, 2025
b7aa587
Update for v3.2.0
oschwald May 5, 2025
7163d92
Set correct version in composer require
oschwald May 6, 2025
de08399
Merge pull request #246 from maxmind/greg/eng-1896
horgh May 6, 2025
b10fbbf
Merge pull request #245 from maxmind/greg/eng-1866
horgh May 9, 2025
43c8422
update zizmor to verson 1.7.0
mmpnelson May 16, 2025
8b8414f
Merge pull request #247 from maxmind/pnelson/uhu-960-zizmor-update
oschwald May 16, 2025
d4b69b1
Bump astral-sh/setup-uv from 6.0.0 to 6.1.0
dependabot[bot] May 23, 2025
e282167
Merge pull request #249 from maxmind/dependabot/github_actions/astral…
horgh May 23, 2025
26a903c
Bump shivammathur/setup-php from 2.33.0 to 2.34.0
dependabot[bot] Jun 11, 2025
b9f9a4e
Merge pull request #251 from maxmind/dependabot/github_actions/shivam…
horgh Jun 11, 2025
d3e5744
Bump shivammathur/setup-php from 2.34.0 to 2.34.1
dependabot[bot] Jun 13, 2025
5b66444
Merge pull request #252 from maxmind/dependabot/github_actions/shivam…
horgh Jun 13, 2025
a9213c1
update zizmor to verson 1.9.0
NajiObeid Jun 17, 2025
4ad9c15
Merge pull request #253 from maxmind/nobeid/uhu-1093-zizmor-is-update…
faktas2 Jun 18, 2025
c040aa1
Bump astral-sh/setup-uv from 6.1.0 to 6.3.0
dependabot[bot] Jun 20, 2025
7721fa2
Merge pull request #255 from maxmind/dependabot/github_actions/astral…
horgh Jun 22, 2025
6a75909
Bump astral-sh/setup-uv from 6.3.0 to 6.3.1
dependabot[bot] Jun 25, 2025
3a82f23
Merge pull request #256 from maxmind/dependabot/github_actions/astral…
oschwald Jun 25, 2025
4f33fde
update zizmor to verson 1.11.0
marselester Jul 15, 2025
5253a2b
Merge pull request #257 from maxmind/mmavletkulov/zizmore-update
NajiObeid Jul 15, 2025
e2c1280
Bump astral-sh/setup-uv from 6.3.1 to 6.4.1
dependabot[bot] Jul 18, 2025
59a9381
Merge pull request #258 from maxmind/dependabot/github_actions/astral…
horgh Jul 18, 2025
9ead840
Update dependabot schedule
horgh Jul 21, 2025
1054517
Merge pull request #259 from maxmind/wstorey/eng-2533-dependabot-runs…
oschwald Jul 22, 2025
0d460c7
Bump astral-sh/setup-uv from 6.4.1 to 6.4.2
dependabot[bot] Jul 23, 2025
e1b5bf5
Merge pull request #260 from maxmind/dependabot/github_actions/astral…
horgh Jul 23, 2025
04ee409
Bump astral-sh/setup-uv from 6.4.2 to 6.4.3
dependabot[bot] Jul 24, 2025
1e2d034
Merge pull request #261 from maxmind/dependabot/github_actions/astral…
horgh Jul 24, 2025
cf927b4
Bump shivammathur/setup-php from 2.34.1 to 2.35.2
dependabot[bot] Jul 29, 2025
6e1bf3c
Merge pull request #263 from maxmind/dependabot/github_actions/shivam…
horgh Jul 29, 2025
b860e81
Bump actions/checkout from 4 to 5
dependabot[bot] Aug 11, 2025
ee52e6f
Bump shivammathur/setup-php from 2.35.2 to 2.35.3
dependabot[bot] Aug 11, 2025
31c787b
Merge pull request #265 from maxmind/dependabot/github_actions/shivam…
horgh Aug 12, 2025
b8ddaca
Merge pull request #264 from maxmind/dependabot/github_actions/action…
horgh Aug 12, 2025
a4b8874
Bump astral-sh/setup-uv from 6.4.3 to 6.5.0
dependabot[bot] Aug 13, 2025
b309881
Merge pull request #266 from maxmind/dependabot/github_actions/astral…
horgh Aug 13, 2025
d8031eb
update zizmor to version 1.12.1
marselester Aug 18, 2025
4c5432f
Merge pull request #267 from maxmind/mmavletkulov/zizmore-update
mmpnelson Aug 18, 2025
b6c9f05
Bump astral-sh/setup-uv from 6.5.0 to 6.6.0
dependabot[bot] Aug 21, 2025
8e17a2c
Merge pull request #268 from maxmind/dependabot/github_actions/astral…
horgh Aug 21, 2025
dc0b77d
Bump shivammathur/setup-php from 2.35.3 to 2.35.4
dependabot[bot] Aug 26, 2025
a921709
Merge pull request #269 from maxmind/dependabot/github_actions/shivam…
horgh Aug 26, 2025
d5b3c38
Bump astral-sh/setup-uv from 6.6.0 to 6.6.1
dependabot[bot] Sep 3, 2025
5449c55
Merge pull request #270 from maxmind/dependabot/github_actions/astral…
horgh Sep 3, 2025
dd1cdf2
Bump astral-sh/setup-uv from 6.6.1 to 6.7.0
dependabot[bot] Sep 15, 2025
453d10c
Merge pull request #272 from maxmind/dependabot/github_actions/astral…
horgh Sep 15, 2025
0c9b4cb
update zizmor to version 1.13.0
marselester Sep 16, 2025
59a3ac2
Merge pull request #273 from maxmind/mmavletkulov/zizmore-update
mmpnelson Sep 18, 2025
4c60a40
Bump shivammathur/setup-php from 2.35.4 to 2.35.5
dependabot[bot] Sep 19, 2025
06720f8
Merge pull request #274 from maxmind/dependabot/github_actions/shivam…
horgh Sep 19, 2025
4572219
Update squizlabs/php_codesniffer requirement from 3.* to 3.* || 4.*
dependabot[bot] Sep 15, 2025
7e1efd2
Require PHP_CodeSniffer 4+
horgh Sep 19, 2025
04ff620
Merge pull request #271 from maxmind/dependabot/composer/squizlabs/ph…
oschwald Sep 19, 2025
a58cabd
Bump astral-sh/setup-uv from 6.7.0 to 6.8.0
dependabot[bot] Oct 1, 2025
7a17273
Merge pull request #275 from maxmind/dependabot/github_actions/astral…
horgh Oct 1, 2025
5cbe026
Bump astral-sh/setup-uv from 6.8.0 to 7.0.0
dependabot[bot] Oct 8, 2025
5720839
Merge pull request #276 from maxmind/dependabot/github_actions/astral…
horgh Oct 8, 2025
ec1311f
Run zizmor via zizmorcore/zizmor-action
horgh Oct 9, 2025
6dfae22
Merge pull request #277 from maxmind/wstorey/eng-3188-zizmor-github-a…
oschwald Oct 10, 2025
47b5ec5
Set Dependabot cooldown period to 4 days
oschwald Oct 30, 2025
444ddcb
Merge pull request #278 from maxmind/greg/eng-3236
mm-kevcenteno Oct 31, 2025
144d04e
Add CLAUDE.md documentation for AI assistants
oschwald Nov 6, 2025
341119e
Add anonymizer and IP risk data to Insights web service
oschwald Nov 6, 2025
02a79e7
Merge pull request #279 from maxmind/greg/eng-3314-ip-risk-and-anonym…
horgh Nov 14, 2025
063db1e
Update deps
oschwald Nov 20, 2025
f8398ad
Set release date
oschwald Nov 20, 2025
f8e5f5d
Update release deps
oschwald Nov 20, 2025
49fcedd
Update for v3.3.0
oschwald Nov 20, 2025
fe22ee6
Add check that we aren't on main
oschwald Nov 20, 2025
5b29714
Merge pull request #280 from maxmind/greg/eng-3323
horgh Nov 20, 2025
a2c0d0e
Bump actions/checkout from 5 to 6
dependabot[bot] Nov 25, 2025
65287df
Merge pull request #281 from maxmind/dependabot/github_actions/action…
horgh Nov 25, 2025
1d1ca5e
Add branch validation checks to release script
oschwald Nov 25, 2025
a6d8ce4
Merge pull request #282 from maxmind/greg/eng-3512
horgh Nov 26, 2025
78f51ba
Bump zizmorcore/zizmor-action from 0.2.0 to 0.3.0
dependabot[bot] Nov 27, 2025
1190628
Merge pull request #283 from maxmind/dependabot/github_actions/zizmor…
horgh Nov 27, 2025
20d1dcb
Bump shivammathur/setup-php from 2.35.5 to 2.36.0
dependabot[bot] Dec 2, 2025
2f8fe66
Merge pull request #284 from maxmind/dependabot/github_actions/shivam…
horgh Dec 2, 2025
59c3946
Add pre-flight checks to release script
oschwald Dec 3, 2025
d81cb2e
Fix release script consistency issues
oschwald Dec 3, 2025
e4fe556
Merge pull request #285 from maxmind/greg/eng-1733
horgh Dec 5, 2025
d1642c9
ci: Add PHP version 8.5 to test matrix
Chris53897 Dec 8, 2025
71f23ed
Merge pull request #286 from Chris53897/patch-1
horgh Dec 8, 2025
fea7dfd
Update Dependabot cooldown from 4 to 7 days
oschwald Dec 12, 2025
3dd03c9
Merge pull request #287 from maxmind/greg/eng-3638
horgh Dec 15, 2025
26bcc37
Clarify when ipRiskSnapshot is not populated
horgh Dec 16, 2025
7d36f18
Merge pull request #288 from maxmind/wstorey/eng-3665-clarify-conditi…
marselester Dec 16, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
/.github/ export-ignore
/bin/ export-ignore
/dev-bin/ export-ignore
/maxmind-db/ export-ignore
/tests/ export-ignore
/.gitattributes export-ignore
/.gitignore export-ignore
/.gitmodules export-ignore
/.travis.yml export-ignore
/.php_cs export-ignore
/.php-cs-fixer.php export-ignore
/box.json export-ignore
/phar-stub.php export-ignore
/phpstan.neon export-ignore
/phpunit.xml.dist export-ignore
/README.dev.md export-ignore
20 changes: 15 additions & 5 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,17 @@
version: 2
updates:
- package-ecosystem: composer
directory: "/"
schedule:
interval: daily
open-pull-requests-limit: 10
- package-ecosystem: composer
directory: /
schedule:
interval: daily
time: '14:00'
open-pull-requests-limit: 10
cooldown:
default-days: 7
- package-ecosystem: github-actions
directory: /
schedule:
interval: daily
time: '14:00'
cooldown:
default-days: 7
13 changes: 10 additions & 3 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,22 +6,29 @@ on:
schedule:
- cron: '55 3 * * SUN'

permissions: {}

jobs:
run:
runs-on: ubuntu-latest
name: "PHP Lints"
steps:
- name: Setup PHP
uses: shivammathur/setup-php@v2
uses: shivammathur/setup-php@44454db4f0199b8b9685a5d763dc37cbf79108e1 # 2.36.0
with:
php-version: 7.4
php-version: 8.3

- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v6
with:
persist-credentials: false

- name: Install dependencies
run: composer install --no-progress --prefer-dist --optimize-autoloader

- name: Validate composer.json
run: composer validate

- name: Lint with php-cs-fixer
run: vendor/bin/php-cs-fixer fix --verbose --diff --dry-run

Expand Down
11 changes: 7 additions & 4 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,17 +6,19 @@ on:
schedule:
- cron: '55 3 * * SUN'

permissions: {}

jobs:
run:
runs-on: ${{ matrix.operating-system }}
strategy:
matrix:
operating-system: [ubuntu-latest, windows-latest, macos-latest]
php-versions: ['7.2', '7.3', '7.4', '8.0']
php-versions: ['8.1', '8.2', '8.3', '8.4', '8.5']
name: "PHP ${{ matrix.php-versions }} test on ${{ matrix.operating-system }}"
steps:
- name: Setup PHP
uses: shivammathur/setup-php@v2
uses: shivammathur/setup-php@44454db4f0199b8b9685a5d763dc37cbf79108e1 # 2.36.0
with:
php-version: ${{ matrix.php-versions }}
tools: composer
Expand All @@ -25,12 +27,13 @@ jobs:
run: echo "::add-matcher::${{ runner.tool_cache }}/phpunit.json"

- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v6
with:
submodules: true
persist-credentials: false

- name: Install dependencies
run: composer install --no-progress --prefer-dist --optimize-autoloader

- name: Test with phpunit
run: vendor/bin/phpunit --coverage-text
run: vendor/bin/phpunit
23 changes: 23 additions & 0 deletions .github/workflows/zizmor.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: GitHub Actions Security Analysis with zizmor

on:
push:
branches: ["main"]
pull_request:
branches: ["**"]

permissions: {}

jobs:
zizmor:
runs-on: ubuntu-latest
permissions:
security-events: write
steps:
- name: Checkout repository
uses: actions/checkout@v6
with:
persist-credentials: false

- name: Run zizmor
uses: zizmorcore/zizmor-action@e639db99335bc9038abc0e066dfcd72e23d26fb4 # v0.3.0
6 changes: 6 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ _site
.gh-pages
.idea
.php_cs.cache
.php-cs-fixer.cache
.phpunit.cache/
.phpunit.result.cache
GeoLite2-City.mmdb
box.phar
Expand All @@ -16,3 +18,7 @@ t.php
vendor/
*.sw?
*.old

# Claude Code directories
.claude/
.claude_cache/
2 changes: 1 addition & 1 deletion .gitmodules
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
[submodule "maxmind-db"]
path = maxmind-db
url = git://github.com/maxmind/MaxMind-DB.git
url = https://github.com/maxmind/MaxMind-DB
65 changes: 65 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,71 @@
CHANGELOG
=========

3.3.0 (2025-11-20)
------------------

* A new `anonymizer` property has been added to `GeoIp2\Model\Insights`.
This property is an instance of `GeoIp2\Record\Anonymizer` and provides
information about whether the IP address belongs to an anonymous network,
VPN provider details (including `confidence`, `providerName`, and
`networkLastSeen`), and various anonymity flags. This data is available
from the GeoIP2 Insights web service.
* A new `ipRiskSnapshot` property has been added to `GeoIp2\Record\Traits`.
This property provides a risk score from 0.01 to 99.99 indicating the risk
associated with the IP address. Higher values indicate higher risk. This is
a static snapshot that is less dynamic than minFraud risk scoring. This
attribute is only available from the GeoIP2 Insights web service.
* The `isAnonymous`, `isAnonymousVpn`, `isHostingProvider`, `isPublicProxy`,
`isResidentialProxy`, and `isTorExitNode` properties in
`GeoIp2\Record\Traits` have been deprecated. Please use the corresponding
properties in the new `anonymizer` object in the Insights response instead.

3.2.0 (2025-05-05)
------------------

* Support for the GeoIP Anonymous Plus database has been added. To do a
lookup in this database, use the `anonymousPlus` method on
`GeoIP2\Database\Reader`.
* `metroCode` on `GeoIp2\Record\Location` has been deprecated. The code
values are no longer being maintained.

3.1.0 (2024-11-15)
------------------

* This library no longer uses implicitly nullable parameter types. This
will fix deprecation warning in PHP 8.4. Reported by Steven Lewis.
GitHub #230.
* The PHPDoc type hints have been improved for use with PHPStan.

3.0.0 (2023-12-04)
------------------

* IMPORTANT: PHP 8.1 or greater is now required.
* BREAKING: Read-only properties are now used for the model and record
classes rather than magic methods. This significantly improves performance.
* BREAKING: The `raw` property on model classes and the `record` property on
record classes have been removed.
* BREAKING: On `GeoIp2\Record\Traits`, the deprecated `isAnonymousProxy` and
`isSatelliteProvider` properties have been removed.
* BREAKING: The `jsonSerialize` output has changed.
* `GeoIp2\WebService\Client` methods now throw an `InvalidArgumentException`
if an invalid IP address is passed to them. Previously, they would make
a request to the web service and throw a
`GeoIp2\Exception\InvalidRequestException`.
* The `isAnycast` property was added to `GeoIp2\Record\Traits`. This returns
`true` if the IP address belongs to an [anycast
network](https://en.wikipedia.org/wiki/Anycast). This is available for the
GeoIP2 Country, City Plus, and Insights web services and the GeoIP2 Country,
City, and Enterprise databases.

2.13.0 (2022-08-05)
-------------------

* The model class names are no longer constructed by concatenating strings.
This change was made to improve support for tools like PHP-Scoper.
Reported by Andrew Mead. GitHub #194.
* Box 4.0.1 is now used to generate the `geoip2.phar` file.

2.12.2 (2021-11-30)
-------------------

Expand Down
Loading