Cool developers don't have to waste time and look out of the window to see the current weather conditions.
You can replace cairo with any city! :D
-
Docker way:
- Requirements:
- docker
- Build the image:
docker build . -t roshdy-weather-app
- Run the command:
docker run roshdy-weather-app php bin/console weather cairo
- You can also run the tests!
docker run roshdy-weather-app ./vendor/bin/phpunit tests
- Requirements:
-
Simple Way:
- Requirements:
- PHP >= 7.3
- Composer
- Install dependencies :
composer install
- To run the command:
php bin/console weather cairo
- to run the tests:
./vendor/bin/phpunit tests
- Requirements:
symfony/console
: Creating command line appsymfony/dependency-injection
: DIsymfony/dotenv
: Manage the .env filephpunit/phpunit
: As a testing framework