oscarfabian / prueba
Prueba DIMTEC
Installs: 6
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 0
Forks: 0
Open Issues: 0
Type:project
Requires
- php: >=5.3.0
This package is not auto-updated.
Last update: 2025-06-08 08:27:05 UTC
README
dimtec project
Installation
This library can be found on Packagist. The recommended way to install and use this is through Composer. On GitHub on the GitHub
composer create-project oscarfabian/prueba=dev-master
Example of getting the weather by City Name
require_once __DIR__ . '/../vendor/autoload.php'; // Autoload files using Composer autoload
use CallWeather\callApi;
$city = 'City';
$appID = callApi::setAppId('Your-app-id');
$weatherCity = callApi::getCityWeather($city);
callApi::pr($weatherCity); //use to print data
Example of getting the weather by Coordinates
require_once __DIR__ . '/../vendor/autoload.php'; // Autoload files using Composer autoload
use CallWeather\callApi;
$appID = callApi::setAppId('Your-app-id');
$lat = 'latitude';
$lon = 'longitude';
$weatherCoor = callApi::getCoorWeather($lat,$lon);
callApi::pr($weatherCity); //use to print data