A PHP-based command line app which prints the current weather of any city which you specify as argument.
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.
- PHP 7.4
- Composer
- Copy
.env.example
file to.env
cp .env.example .env
- Enter your OpenWeatherMap API key in
.env
API_KEY=YOURAPIKEY
- Install composer packages
composer install
./bin/weather.php Berlin
./vendor/bin/phpunit tests