Download the PHP package gmopx/laravel-owm without Composer

On this page you can find all versions of the php package gmopx/laravel-owm. 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 laravel-owm

Laravel-OWM (Open Weather Map)

A wrapper for OpenWeatherMap-PHP-Api writen by @cmfcmf

This package allows you to implement OpenWeatherMap-PHP-Api in laravel-way in your Laravel project.

1. Installation

composer require gmopx/laravel-owm

2. Add this line to your conf/app.php file

For Laravel == 5.0.*

For Laravel <= 5.4.*

For Laravel >= 5.5.* will use the auto-discovery function.

3. Publish the config file (config/laravel-owm.php)

php artisan vendor:publish --provider="Gmopx\LaravelOWM\LaravelOWMServiceProvider"

4. Add your Open Weather Map API key

How to use...

Current weather

Visit https://github.com/cmfcmf/OpenWeatherMap-PHP-Api/blob/master/Examples/CurrentWeather.php for more info.

Forecast

Visit https://github.com/cmfcmf/OpenWeatherMap-PHP-Api/blob/master/Examples/WeatherForecast.php for more info.

History

Visit https://github.com/cmfcmf/OpenWeatherMap-PHP-Api/blob/master/Examples/WeatherForecast.php for more info.

Parameters:

Note:

getCurrentWeather:
getWeatherForecast:
getDailyWeatherForecast:
getWeatherHistory:

Routes

Additionally this package includes 2 routes ready-to-use that shows weather data in JSON format.

[GET] /current-weather

Parameters:

[GET] /forecast

Parameters:

Note: You must use city or coord but not both.

/current-weather

Consider the following:

/forecast (5 days)

Consider the following:

Changelog

v0.1.2

v0.1.1

Thanks to:

License: MIT

Contributing

You can help me fixing my horrific English in the documentation & comments.


All versions of laravel-owm with dependencies

PHP Build Version
Package Version
Requires php Version >=5.4.0
cmfcmf/openweathermap-php-api Version ^2.1
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 gmopx/laravel-owm contains the following files

Loading the files please wait ....