Download the PHP package rawaby88/open-weather-laravel without Composer

On this page you can find all versions of the php package rawaby88/open-weather-laravel. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package open-weather-laravel

Open Weather Map Laravel

Latest Version on Packagist Scrutinizer Code Quality Build Status Code Intelligence Status

🌡 Laravel package to provide Open Weather map API integration.

Star ⭐ repo to show suport 🍺

To use this package you'll need to register into Open Weather Map service and generate an API Key. For more information visit: https://home.openweathermap.org/api_keys

Installation

Require this package with composer:

Add Service Provider & Facade

For Laravel 5.5+

Once the package is added, the service provider and facade will be autodiscovered.

For Older versions of Laravel

Add the ServiceProvider to the providers array in config/app.php:

Publish Config

Once done, publish the config to your config folder using:

Configuration

Once the config file is published, open config/open-weather.php

Global config

api_token
Your API key goes here. Or add it to your .env file WEATHER_API_TOKEN

api_icon_url
Url display the icons that sent from the API / or create your own icons

unit
Temperature is available in fahrenheit, celsius and kelvin units.

language
Weather description language.

Usage

Call current weather data for one location

By city name

You can call by city name or city name and country code or city name, country state code . Please note that searching by states available only for the USA locations.

By city id

You can make an API call by city ID. List of city ID 'city.list.json.gz' can be downloaded

By geographic coordinates

You can make an API call by zip code. Please note if country is not specified then the search works for USA as a default.

By ZIP code

You can call by latitude and longitude coordinates

Example for single result

Call current weather data for several cities

Cities within a rectangle zone

API returns the data from cities within the defined rectangle specified by the geographic coordinates.

Cities within a rectangle zone

API returns the data from cities within the defined rectangle specified by the geographic coordinates.

Example for several cities

Temperature Object

Contents Temperature information

Weather Object

Contents Weather information

Sun Object

Contents Sun information

Location Object

Contents Location information

Parameters unit & language

Weather parameters unit

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.

Changelog

Please see CHANGELOG for more information on what has changed recently.

Credits

License

MIT The MIT License (MIT). Please see License File for more information.


All versions of open-weather-laravel with dependencies

PHP Build Version
Package Version
Requires guzzlehttp/guzzle Version ^7.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package rawaby88/open-weather-laravel contains the following files

Loading the files please wait ....