Download the PHP package dwr/openweather-bundle without Composer

On this page you can find all versions of the php package dwr/openweather-bundle. 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 openweather-bundle

SensioLabsInsight

Latest Stable Version Total Downloads Build Status Scrutinizer Code Quality Coverage Status composer.lock

DwrOpenWeatherBundle

DwrOpenWeatherBundle is a simply wrapper bundle for Open Weather API.
In order to start please generate your personal ApiKey first.
You can do it here.

Installation

When you have ApiKey, installation is a quick 3 steps process:

  1. Download DwrOpenWeatherBundle using composer
  2. Enable the Bundle
  3. Add routing to routing.yml in order to can open example in your browser

Step 1: Download DwrOpenWeatherBundle using composer

Add DwrOpenWeatherBundle in version 2.0 to your composer.json and run 'composer update'

or download the bundle by running the command:

Composer will install the bundle into your project's vendor/dwr/openweather-bundle directory.

Step 2: Enable the bundle and add APIKEY to config.yml

Enable the bundle in the kernel:

Add APIKEY to your config.yml

Step 3: Add routing to routing.yml in order to can open example in your browser

Congratulations! You're ready to show weather widget in your symfony application.
Example how weather-basic-small looks like you can find on: yours-application-url/weather-basic-small .

Usage

GET Weather

In your Controller

You can get weather from OpenWeather API by using:

GET Forecast

In your Controller

You can get forecast from OpenWeather API by using:

Examples

Take a moment and check examples. Maybe you will find there a solution which you like.

In order to run examples on your local:

  1. Add route in your routing.yml (app/config/routing.yml).

How does it exactly look like, you may see below.

weather-basic-small

Example from: Dwr\OpenWeatherBundle\Controller\DefaultController.php
Action: weatherBasicSmallAction()

weather-basic-medium

Example from: Dwr\OpenWeatherBundle\Controller\DefaultController.php
Action: weatherBasicMediumAction()

weather-basic-large

Example from: Dwr\OpenWeatherBundle\Controller\DefaultController.php
Action: weatherBasicLargeAction()

forecast-chart

Example from: Dwr\OpenWeatherBundle\Controller\DefaultController.php
Action: forecastChartAction()

forecast-basic

Example from: Dwr\OpenWeatherBundle\Controller\DefaultController.php
Action: forecastBasicAction()

Change log

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

License

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


All versions of openweather-bundle with dependencies

PHP Build Version
Package Version
Requires symfony/symfony Version 3.*
symfony/framework-bundle Version 3.*
symfony/twig-bundle Version 3.*
guzzlehttp/guzzle Version ~6.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 dwr/openweather-bundle contains the following files

Loading the files please wait ....