This is a console project that gets current weather information of any city over the world and displays it in the console or sends it to given email/telegram chat.
- Laravel 10+
- php 8.0+
composer installphp artisan key:generate- copy necessary environment values from
.env.exampleto.envfile - Run
php artisan queue:workartisan command (The queue works with sending current weather data to an email and a telegram)
The main command is: weather
The command receives three arguments:
provider- weather provider api namecity- the name of the city you want to know about the weather--channeloption - place where you want to display. Default value isconsole.consoleemail:[email_address]telegram:[chat_id]
php artisan weather weather-api Tashkentphp artisan weather visual-crossing Tashkent --option=email:[email protected]php artisan weather weather-api London --option=telegram:any_chat_id
Don't forget to run queue worker before using the command