This repository contains a basic weather app built using some form of MVC via my custom router that I made available in my repo.
- Check current weather conditions for a specified city.
- View hourly and weekly weather forecasts.
- Supports searching for weather information by city name or geographic coordinates.
- Error handling for invalid city names or coordinates and connection.
- To test the app, goto http://129.151.181.76/ Sorry deleted the server, no longer accessible
-
Clone the repository to your local environment:
git clone https://github.com/chiloanerk/PHPWeather.git
-
Configure your web server to point to the public directory as the document root. I use
php -S localhost:port -t public
-
Define your routes in the app/routes/routes.php file.
-
Customize your controllers and views according to your project's requirements.
-
Access your web application in the browser and navigate to the defined routes.
- Define routes in the app/routes/routes.php file using the router's methods.
- Create controllers in the app/controllers directory.
- Views are accessed using the custom function
views('name')
- Place views in the app/views directory using format
name.view.php
.
- Mobile Dark and Light
Mobile Light | Mobile Dark |
---|---|
- Desktop Dark and Light
Desktop Light | Desktop Dark |
---|---|