A small test app that makes use of the OpenWeatherMap API. It allows for input of a city and country code and will provide back (in metric units):
- Current weather for the location entered
- Daily forecast, for exactly 3 days, for the location entered including the temperature, min and max temperatures and the weather state (eg Rain, Snow, Extreme etc)
- Ensure you have PHP CLI version 5.4+ installed
php composer.phar install
- Perform the steps outlined in Setting up a Development Environment
php -S 127.0.0.1:8765 -t web/- You can now access the site from http://127.0.0.1:8765
NOTE: Tests have only been run on *nix based machines. The integration tests will not run on a Windows system
- Perform the steps outlined in Setting up a Development Environment
vendor/bin/phpunit