Skip to content

croess/CakePHP-Weather-Component

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 

Repository files navigation

Weather Component

A CakePHP component for getting the weather using The Google Weather API

INSTALLATION
------------

Copy weather.php to your app/controllers/components directory

CONFIGURATION
---------------

In your controller, add the Weather Component to your $components array

    public $components = array('Weather');

USAGE
---------------

The following example shows how to get the weather for Sydney Australia from
within a controller action:

    $this->Weather->location = 'Sydney Australia';
    $this->Weather->forecast();
    debug($this->Weather);
    exit;

LICENSE
-------

The files in this archive are released under the new BSD license. You can find a
copy of this license in LICENSE.

About

A CakePHP component for getting the weather using The Google Weather API

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • PHP 100.0%