PHPackages                             nwidart/laravel-forecast - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. nwidart/laravel-forecast

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

nwidart/laravel-forecast
========================

Laravel-forecast provides a service provider and a facade around the Forecast-php wrapper

2.1(10y ago)24.9k6[3 issues](https://github.com/nWidart/Laravel-forecast/issues)MITPHPPHP &gt;=5.5.0

Since Aug 3Pushed 10y ago1 watchersCompare

[ Source](https://github.com/nWidart/Laravel-forecast)[ Packagist](https://packagist.org/packages/nwidart/laravel-forecast)[ RSS](/packages/nwidart-laravel-forecast/feed)WikiDiscussions master Synced 2d ago

READMEChangelog (3)Dependencies (2)Versions (6)Used By (0)

[![Latest Version](https://camo.githubusercontent.com/a023fad8fe3fd0257af24b06a0d5a88b71c38586ef43b98e63ae6480f35180bc/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f72656c656173652f6e5769646172742f4c61726176656c2d666f7265636173742e7376673f7374796c653d666c61742d737175617265)](https://github.com/nWidart/Laravel-forecast/releases)[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE.md)[![SensioLabs Insight](https://camo.githubusercontent.com/69a16b4696a7322b3ff522e9944e19bc5024a6122d50c5e20c38214c7608fa5c/68747470733a2f2f696d672e736869656c64732e696f2f73656e73696f6c6162732f692f66353534343831622d376364322d343233392d613037622d6461393735646332373638382e737667)](https://insight.sensiolabs.com/projects/f554481b-7cd2-4239-a07b-da975dc27688)[![Quality Score](https://camo.githubusercontent.com/e9bbc22d7c3d24cabbcaf56fb4ea4da8977f94930fdb0bac8034b974cd47ea8c/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f6e5769646172742f4c61726176656c2d666f7265636173742e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/nWidart/Laravel-forecast)[![Total Downloads](https://camo.githubusercontent.com/21e74ec9ac5f367a08e8024edaebc618ce63e73a684512eb536004eed99ea802/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6e7769646172742f6c61726176656c2d666f7265636173742e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/nwidart/laravel-forecast)

**Laravel 5 compatible package**

Laravel versionPackage version~4.2~1.2~5.1~2.1Laravel-Forecast
================

[](#laravel-forecast)

Laravel-forecast provides a service provider and a facade around the [Forecast-php](https://github.com/nWidart/forecast-php) wrapper.

Want to use this as a standalone package ? Checkout the [Forecast-php](https://github.com/nWidart/forecast-php) API wrapper.

Installation
------------

[](#installation)

```
$ composer require nwidart/laravel-forecast
```

Add the service provider in `app/config/app.php`

```
'providers' => [
	...
	Nwidart\LaravelForecast\LaravelForecastServiceProvider::class
]
```

Add the Alias provider in `app/config/app.php`

```
'aliases' => [
	...
	'Forecast' => Nwidart\LaravelForecast\ForecastFacade::class,
]
```

**Publish the configuration file and add your [forecast API key](https://developer.forecast.io/)**

```
$ php artisan vendor:publish --provider="Nwidart\LaravelForecast\LaravelForecastServiceProvider"

```

Usage
-----

[](#usage)

### Base usage

[](#base-usage)

```
