2017 © Pedro Peláez
 

project prueba

Prueba DIMTEC

image

oscarfabian/prueba

Prueba DIMTEC

  • Tuesday, November 14, 2017
  • by oscarfmg9
  • Repository
  • 0 Watchers
  • 0 Stars
  • 2 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

OpenWeatherMap PHP use of API

dimtec project, (*1)

Installation

This library can be found on Packagist. The recommended way to install and use this is through Composer. On GitHub on the GitHub, (*2)

composer create-project oscarfabian/prueba=dev-master

Example of getting the weather by City Name

```<?php, (*3)

require_once DIR . '/../vendor/autoload.php'; // Autoload files using Composer autoload, (*4)

use CallWeather\callApi;, (*5)

$city = 'City'; $appID = callApi::setAppId('Your-app-id'); $weatherCity = callApi::getCityWeather($city); callApi::pr($weatherCity); //use to print data, (*6)


Example of getting the weather by Coordinates ============================================= ```<?php 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

The Versions

14/11 2017

dev-master

9999999-dev

Prueba DIMTEC

  Sources   Download

IMT

The Requires

  • php >=5.3.0

 

by Oscar Fabian Maldonado Garcia