You can save boilerplate code in the IP2LocationIO\DomainWhois, IP2LocationIO\HostedDomain, IP2LocationIO\IPGeolocation constructors by type hinting the $config parameter.
public function __construct( Configuration $config)
{
$this->config = $config;
}