Skip to content

Object-oriented weather application utilising the OpenWeather API, developed for accurate and up-to-date weather data reporting.

Notifications You must be signed in to change notification settings

chiloanerk/WeatherAppPHP

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

36 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PHP Weather

This repository contains a basic weather app built using some form of MVC via my custom router that I made available in my repo.

Features

  • 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.screenshot-desktop-light.png

Getting Started

  1. Clone the repository to your local environment:

    git clone https://github.com/chiloanerk/PHPWeather.git
  2. Configure your web server to point to the public directory as the document root. I use php -S localhost:port -t public

  3. Define your routes in the app/routes/routes.php file.

  4. Customize your controllers and views according to your project's requirements.

  5. Access your web application in the browser and navigate to the defined routes.

Usage

  • 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.

Screenshots

  1. Mobile Dark and Light
Mobile Light Mobile Dark
Mobile Light Mobile Dark
  1. Desktop Dark and Light
Desktop Light Desktop Dark
Desktop Light Desktop Dark

About

Object-oriented weather application utilising the OpenWeather API, developed for accurate and up-to-date weather data reporting.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published