oscarfabian/prueba

Prueba DIMTEC

dev-master 2017-11-14 18:03 UTC

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