Skip to content

3.0.0

Latest
Compare
Choose a tag to compare
@oschwald oschwald released this 04 Dec 17:16
1a802ce
  • 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 classess 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
    . This is available for the
    GeoIP2 Country, City Plus, and Insights web services and the GeoIP2 Country,
    City, and Enterprise databases.