The WeatherReport App is a comprehensive tool for obtaining past and current weather information in a specified location. It is developed using Alpine, PHP, Twig, Guzzle, and Carbon.
- Fetch past and current day weather data for any location entered in the search bar.
- User-friendly interface for easy navigation and data presentation.
- PHP installed on your machine.
- Registered API key from WeatherAPI.
-
API Key Registration: Register for an API key at WeatherAPI.
-
Clone Repository: Clone or download this repository to your desired directory.
-
Environment File Setup: Rename
.env.example
to.env
in the root directory. -
Configure API Key: Add your WeatherAPI key to the
.env
file. -
Install Dependencies: Run the following command to install required packages: composer install
-
Launch Server: Start the application using: php -S localhost:8080
After installation, open localhost:8080
in your web browser to access the WeatherReport App. Enter the desired location in the search bar to view past and current weather information.
Note: This application is intended for demonstration and educational purposes and is not recommended for production use without further modifications.