Skip to content

Commit c7f5661

Browse files
authored
Merge pull request #310 from maxmind/greg/stf-555
Use 'GeoIP'/'GeoLite' branding in documentation
2 parents e172afa + e337e95 commit c7f5661

22 files changed

Lines changed: 84 additions & 82 deletions

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ CHANGELOG
88
`subdivisions` array. This provides compatibility with some third-party
99
databases that publish empty subdivisions arrays. Pull request by Jarek
1010
Jakubowski. GitHub #290.
11+
* The `GeoIP2` prefix in web service error messages has been changed to
12+
`GeoIP`.
1113

1214
3.3.0 (2025-11-20)
1315
------------------

CLAUDE.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ This file provides guidance to Claude Code (claude.ai/code) when working with co
55
## Project Overview
66

77
**GeoIP2-php** is MaxMind's official PHP client library for:
8-
- **GeoIP2/GeoLite2 Web Services**: Country, City, and Insights endpoints
9-
- **GeoIP2/GeoLite2 Databases**: Local MMDB file reading for various database types (City, Country, ASN, Anonymous IP, Anonymous Plus, ISP, etc.)
8+
- **GeoIP/GeoLite Web Services**: Country, City Plus, and Insights endpoints
9+
- **GeoIP/GeoLite Databases**: Local MMDB file reading for various database types (City, Country, ASN, Anonymous IP, Anonymous Plus, ISP, etc.)
1010

1111
The library provides both web service clients and database readers that return strongly-typed model objects containing geographic, ISP, anonymizer, and other IP-related data.
1212

@@ -323,6 +323,6 @@ vendor/bin/phpunit
323323
## Additional Resources
324324

325325
- [API Documentation](https://maxmind.github.io/GeoIP2-php/)
326-
- [GeoIP2 Web Services Docs](https://dev.maxmind.com/geoip/docs/web-services)
326+
- [GeoIP Web Services Docs](https://dev.maxmind.com/geoip/docs/web-services)
327327
- [MaxMind DB Format](https://maxmind.github.io/MaxMind-DB/)
328328
- GitHub Issues: https://github.com/maxmind/GeoIP2-php/issues

README.md

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
# GeoIP2 PHP API
1+
# GeoIP PHP API
22

33
## Description
44

5-
This package provides an API for the GeoIP2 and GeoLite2
5+
This package provides an API for the GeoIP and GeoLite
66
[web services](https://dev.maxmind.com/geoip/docs/web-services?lang=en) and
77
[databases](https://dev.maxmind.com/geoip/docs/databases?lang=en).
88

@@ -46,7 +46,7 @@ require 'vendor/autoload.php';
4646

4747
Although we strongly recommend using Composer, we also provide a
4848
[phar archive](https://php.net/manual/en/book.phar.php) containing most of the
49-
dependencies for GeoIP2. Our latest phar archive is available on
49+
dependencies for GeoIP. Our latest phar archive is available on
5050
[our releases page](https://github.com/maxmind/GeoIP2-php/releases).
5151

5252
### Install Dependencies
@@ -80,15 +80,15 @@ require 'geoip2.phar';
8080

8181
The [MaxMind DB API](https://github.com/maxmind/MaxMind-DB-Reader-php)
8282
includes an optional C extension that you may install to dramatically increase
83-
the performance of lookups in GeoIP2 or GeoLite2 databases. To install, please
83+
the performance of lookups in GeoIP or GeoLite databases. To install, please
8484
follow the instructions included with that API.
8585

8686
The extension has no effect on web-service lookups.
8787

8888
## IP Geolocation Usage
8989

9090
IP geolocation is inherently imprecise. Locations are often near the center of
91-
the population. Any location provided by a GeoIP2 database or web service
91+
the population. Any location provided by a GeoIP database or web service
9292
should not be used to identify a particular address or household.
9393

9494
## Database Reader
@@ -304,14 +304,14 @@ argument specifies the language preferences when using the `->name` method on
304304
the model classes that this client creates. The fourth argument is additional
305305
options such as `host` and `timeout`.
306306

307-
For instance, to call the GeoLite2 web service instead of the GeoIP2 web
307+
For instance, to call the GeoLite web service instead of the GeoIP web
308308
service:
309309

310310
```php
311311
$client = new Client(42, 'abcdef123456', ['en'], ['host' => 'geolite.info']);
312312
```
313313

314-
To call the Sandbox GeoIP2 web service instead of the production GeoIP2 web
314+
To call the Sandbox GeoIP web service instead of the production GeoIP web
315315
service:
316316

317317
```php
@@ -344,10 +344,10 @@ use GeoIp2\WebService\Client;
344344
// This creates a Client object that can be reused across requests.
345345
// Replace "42" with your account ID and "license_key" with your license
346346
// key. Set the "host" to "geolite.info" in the fourth argument options
347-
// array to use the GeoLite2 web service instead of the GeoIP2 web
347+
// array to use the GeoLite web service instead of the GeoIP web
348348
// service. Set the "host" to "sandbox.maxmind.com" in the fourth argument
349-
// options array to use the Sandbox GeoIP2 web service instead of the
350-
// production GeoIP2 web service.
349+
// options array to use the Sandbox GeoIP web service instead of the
350+
// production GeoIP web service.
351351
$client = new Client(42, 'abcdef123456');
352352

353353
// Replace "city" with the method corresponding to the web service that
@@ -398,7 +398,7 @@ Because of these factors, it is possible for any endpoint to return a record
398398
where some or all of the attributes are unpopulated.
399399

400400
See the
401-
[GeoIP2 web service docs](https://dev.maxmind.com/geoip/docs/web-services?lang=en)
401+
[GeoIP web service docs](https://dev.maxmind.com/geoip/docs/web-services?lang=en)
402402
for details on what data each endpoint may return.
403403

404404
The only piece of data which is always returned is the `ipAddress` attribute
@@ -411,7 +411,7 @@ databases with data on geographical features around the world, including
411411
populated places. They offer both free and paid premium data. Each feature is
412412
uniquely identified by a `geonameId`, which is an integer.
413413

414-
Many of the records returned by the GeoIP2 web services and databases include
414+
Many of the records returned by the GeoIP web services and databases include
415415
a `geonameId` property. This is the ID of a geographical feature (city,
416416
region, country, etc.) in the GeoNames database.
417417

@@ -460,7 +460,7 @@ initial clone, or from https://github.com/maxmind/MaxMind-DB
460460

461461
## Versioning
462462

463-
The GeoIP2 PHP API uses [Semantic Versioning](https://semver.org/).
463+
The GeoIP PHP API uses [Semantic Versioning](https://semver.org/).
464464

465465
## Copyright and License
466466

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "geoip2/geoip2",
3-
"description": "MaxMind GeoIP2 PHP API",
3+
"description": "MaxMind GeoIP PHP API",
44
"keywords": ["geoip", "geoip2", "geolocation", "ip", "maxmind"],
55
"homepage": "https://github.com/maxmind/GeoIP2-php",
66
"type": "library",

dev-bin/release.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ rm -rf "$cachedir"
157157
php phpDocumentor.phar \
158158
--visibility=public \
159159
--cache-folder="$cachedir" \
160-
--title="GeoIP2 PHP API $tag" \
160+
--title="GeoIP PHP API $tag" \
161161
run \
162162
-d "$PWD/../src" \
163163
-t "doc/$tag"

docs/hugo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
title = "MaxMind GeoIP2 PHP API"
1+
title = "MaxMind GeoIP PHP API"
22
disableKinds = ["taxonomy", "term", "RSS"]
33

44
[[cascade]]

src/Database/Reader.php

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
use MaxMind\Db\Reader\Metadata;
2121

2222
/**
23-
* Instances of this class provide a reader for the GeoIP2 database format.
23+
* Instances of this class provide a reader for the GeoIP database format.
2424
* IP addresses can be looked up using the database specific methods.
2525
*
2626
* ## Usage ##
@@ -51,7 +51,7 @@ class Reader implements ProviderInterface
5151
/**
5252
* Constructor.
5353
*
54-
* @param string $filename the path to the GeoIP2 database file
54+
* @param string $filename the path to the GeoIP database file
5555
* @param array<string> $locales list of locale codes to use in name property
5656
* from most preferred to least preferred
5757
*
@@ -67,7 +67,7 @@ public function __construct(
6767
}
6868

6969
/**
70-
* This method returns a GeoIP2 City model.
70+
* This method returns a GeoIP City model.
7171
*
7272
* @param string $ipAddress an IPv4 or IPv6 address as a string
7373
*
@@ -81,7 +81,7 @@ public function city(string $ipAddress): City
8181
}
8282

8383
/**
84-
* This method returns a GeoIP2 Country model.
84+
* This method returns a GeoIP Country model.
8585
*
8686
* @param string $ipAddress an IPv4 or IPv6 address as a string
8787
*
@@ -95,7 +95,7 @@ public function country(string $ipAddress): Country
9595
}
9696

9797
/**
98-
* This method returns a GeoIP2 Anonymous IP model.
98+
* This method returns a GeoIP Anonymous IP model.
9999
*
100100
* @param string $ipAddress an IPv4 or IPv6 address as a string
101101
*
@@ -131,7 +131,7 @@ public function anonymousPlus(string $ipAddress): AnonymousPlus
131131
}
132132

133133
/**
134-
* This method returns a GeoLite2 ASN model.
134+
* This method returns a GeoLite ASN model.
135135
*
136136
* @param string $ipAddress an IPv4 or IPv6 address as a string
137137
*
@@ -149,7 +149,7 @@ public function asn(string $ipAddress): Asn
149149
}
150150

151151
/**
152-
* This method returns a GeoIP2 Connection Type model.
152+
* This method returns a GeoIP Connection Type model.
153153
*
154154
* @param string $ipAddress an IPv4 or IPv6 address as a string
155155
*
@@ -167,7 +167,7 @@ public function connectionType(string $ipAddress): ConnectionType
167167
}
168168

169169
/**
170-
* This method returns a GeoIP2 Domain model.
170+
* This method returns a GeoIP Domain model.
171171
*
172172
* @param string $ipAddress an IPv4 or IPv6 address as a string
173173
*
@@ -185,7 +185,7 @@ public function domain(string $ipAddress): Domain
185185
}
186186

187187
/**
188-
* This method returns a GeoIP2 Enterprise model.
188+
* This method returns a GeoIP Enterprise model.
189189
*
190190
* @param string $ipAddress an IPv4 or IPv6 address as a string
191191
*
@@ -199,7 +199,7 @@ public function enterprise(string $ipAddress): Enterprise
199199
}
200200

201201
/**
202-
* This method returns a GeoIP2 ISP model.
202+
* This method returns a GeoIP ISP model.
203203
*
204204
* @param string $ipAddress an IPv4 or IPv6 address as a string
205205
*
@@ -283,7 +283,7 @@ public function metadata(): Metadata
283283
}
284284

285285
/**
286-
* Closes the GeoIP2 database and returns the resources to the system.
286+
* Closes the GeoIP database and returns the resources to the system.
287287
*/
288288
public function close(): void
289289
{

src/Exception/InvalidRequestException.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
namespace GeoIp2\Exception;
66

77
/**
8-
* This class represents an error returned by MaxMind's GeoIP2
8+
* This class represents an error returned by MaxMind's GeoIP
99
* web service.
1010
*/
1111
class InvalidRequestException extends HttpException

src/Model/AnonymousIp.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
use GeoIp2\Util;
88

99
/**
10-
* This class provides the GeoIP2 Anonymous IP model.
10+
* This class provides the GeoIP Anonymous IP model.
1111
*/
1212
class AnonymousIp implements \JsonSerializable
1313
{

src/Model/Asn.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
use GeoIp2\Util;
88

99
/**
10-
* This class provides the GeoLite2 ASN model.
10+
* This class provides the GeoLite ASN model.
1111
*/
1212
class Asn implements \JsonSerializable
1313
{

0 commit comments

Comments
 (0)