__construct()
__construct(string $database)
Constructs a Reader for the MaxMind DB format. The file passed to it must be a valid MaxMind DB file such as a GeoIp2 database file.
Parameters
string | $database | the MaxMind DB file to use |
Throws
- \InvalidArgumentException
for invalid database path or unknown arguments
- \MaxMind\Db\Reader\InvalidDatabaseException
if the database is invalid or there is an error reading from it