$ip = "188.186.18.255";
$location = new Location;
$location->getLocationData($ip)Return array.
Пример использования:
$customService = ['CustomService' => CustomClass::class];
$weather = new Weather($customService);
$info = $weather->getTownWheather('London', 'CustomService');Пример использования CLI
bin/weather London
bin/weather --service=SecondService LondonReturn temp and wind speed.