Download the PHP package rakibdevs/openweather-laravel-api without Composer

On this page you can find all versions of the php package rakibdevs/openweather-laravel-api. 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?
rakibdevs/openweather-laravel-api
Rate from 1 - 5
Rated 4.00 based on 1 reviews

Informations about the package openweather-laravel-api

Laravel Open Weather API

Packagist GitHub stars GitHub forks GitHub issues GitHub license

Laravel OpenWeather API (openweather-laravel-api) is a Laravel package to connect Open Weather Map APIs ( https://openweathermap.org/api ) and access free API services (current weather, weather forecast, weather history) easily.

Supported APIs

APIs Get data by
Current Weather By city name, city ID, geographic coordinates, ZIP code
One Call API By geographic coordinates
4 Day 3 Hour Forecast By city name, city ID, geographic coordinates, ZIP code
5 Day Historical By geographic coordinates
Air Pollution By geographic coordinates
Geocoding API By geographic coordinates

Installation

Install the package through Composer. On the command line:

Configuration

If Laravel > 7, no need to add provider

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

Add API key and desired language in .env

Publish the required package configuration file using the artisan command:

Edit the config/openweather.php file and modify the api_key value with your Open Weather Map api key.

Now you can configure API version from config as One Call API is upgraded to version 3.0. Please set available api version in config.

Usage

Here you can see some example of just how simple this package is to use.

Current weather

Access current weather data for any location on Earth including over 200,000 cities! OpenWeather collect and process weather data from different sources such as global and local weather models, satellites, radars and vast network of weather stations

Output:

One Call API

Make just one API call and get all your essential weather data for a specific location with OpenWeather One Call API.

4 Day 3 Hour Forecast

4 day forecast is available at any location or city. It includes weather forecast data with 3-hour step.

5 Day Historical

Get access to historical weather data for the previous 5 days.

Air Pollution

Air Pollution API provides current, forecast and historical air pollution data for any coordinates on the globe

Besides basic Air Quality Index, the API returns data about polluting gases, such as Carbon monoxide (CO), Nitrogen monoxide (NO), Nitrogen dioxide (NO2), Ozone (O3), Sulphur dioxide (SO2), Ammonia (NH3), and particulates (PM2.5 and PM10).

Air pollution forecast is available for 5 days with hourly granularity. Historical data is accessible from 27th November 2020.

Geocoding API

Geocoding API is a simple tool that we have developed to ease the search for locations while working with geographic names and coordinates. -> Direct geocoding converts the specified name of a location or area into the exact geographical coordinates; -> Reverse geocoding converts the geographical coordinates into the names of the nearby locations.

Free API Limitations

License

Laravel Open Weather API is licensed under The MIT License (MIT).


All versions of openweather-laravel-api with dependencies

PHP Build Version
Package Version
Requires php Version ^7.2|^7.3|^7.4|^8.0
guzzlehttp/guzzle Version ^6.3|^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 rakibdevs/openweather-laravel-api contains the following files

Loading the files please wait ....