Skip to content

Latest commit

 

History

History
30 lines (22 loc) · 553 Bytes

File metadata and controls

30 lines (22 loc) · 553 Bytes

Location

Usage Instructions

$ip = "188.186.18.255";
$location = new Location;
$location->getLocationData($ip)

Return array.

Weather CLI and Class

Usage Instructions

Пример использования:

$customService = ['CustomService' => CustomClass::class];
$weather = new Weather($customService);
$info = $weather->getTownWheather('London', 'CustomService');

Пример использования CLI

bin/weather London
bin/weather --service=SecondService London

Return temp and wind speed.