@@ -11,7 +11,7 @@ Documentation is available at: https://docs.dotkernel.org/dot-geoip/.
1111## Badges
1212
1313![ OSS Lifecycle] ( https://img.shields.io/osslifecycle/dotkernel/dot-geoip )
14- ![ PHP from Packagist (specify version)] ( https://img.shields.io/packagist/php-v/dotkernel/dot-geoip/3.9 .0 )
14+ ![ PHP from Packagist (specify version)] ( https://img.shields.io/packagist/php-v/dotkernel/dot-geoip/3.10 .0 )
1515
1616[ ![ GitHub issues] ( https://img.shields.io/github/issues/dotkernel/dot-geoip )] ( https://github.com/dotkernel/dot-geoip/issues )
1717[ ![ GitHub forks] ( https://img.shields.io/github/forks/dotkernel/dot-geoip )] ( https://github.com/dotkernel/dot-geoip/network )
@@ -31,7 +31,7 @@ composer require dotkernel/dot-geoip
3131```
3232
3333If your application didn't already use it, the above command also installed [ dotkernel/dot-cli] ( https://github.com/dotkernel/dot-cli ) .
34- In this case, see it's [ README] ( https://github.com/dotkernel/dot-cli/blob/3.0/README.md ) file on how to use it.
34+ In this case, see its [ README] ( https://github.com/dotkernel/dot-cli/blob/3.0/README.md ) file on how to use it.
3535
3636Copy config file ` vendor/dotkernel/dot-geoip/config/autoload/geoip.global.php ` into your application's ` config/autoload ` directory.
3737
@@ -49,15 +49,15 @@ Dot\GeoIP\Command\GeoIpCommand::getDefaultName() => Dot\GeoIP\Command\GeoIpComma
4949
5050## Manage GeoLite2 database
5151
52- You can download/update a specific GeoLite2 database, by running the following command:
52+ You can download/update a specific GeoLite2 database by running the following command:
5353
5454``` shell
5555php ./bin/cli.php geoip:synchronize -d {DATABASE}
5656```
5757
5858Where _ {DATABASE}_ takes one of the following values: ` asn ` , ` city ` , ` country ` .
5959
60- You can download/update all GeoLite2 databases at once, by running the following command:
60+ You can download/update all GeoLite2 databases at once by running the following command:
6161
6262``` shell
6363php ./bin/cli.php geoip:synchronize
@@ -115,16 +115,16 @@ class ExampleService
115115 try {
116116 // You can use any of the below methods:
117117
118- // Get CountryData which includes isEuMember, isoCode and name
118+ // Get CountryData, which includes isEuMember, isoCode and name
119119 return $this->locationService->getCountry($ipAddress);
120120
121- // Get ContinentData which includes code and name
121+ // Get ContinentData, which includes code and name
122122 return $this->locationService->getContinent($ipAddress);
123123
124- // Get OrganizationData which includes asn and name
124+ // Get OrganizationData, which includes asn and name
125125 return $this->locationService->getOrganization($ipAddress);
126126
127- // Get LocationData which includes all of the above + estimated coordinates + timezone
127+ // Get LocationData, which includes all the above + estimated coordinates and timezone
128128 return $this->locationService->getLocation($ipAddress);
129129 } catch (Throwable $exception) {
130130 // handle errors
0 commit comments