An open API service indexing awesome lists of open source software.

https://github.com/chak10/weather-converter

Various Utilities for Weather
https://github.com/chak10/weather-converter

apparent-temperature dewpoint heat-index php php7 wind-chill

Last synced: 5 months ago
JSON representation

Various Utilities for Weather

Awesome Lists containing this project

README

          

# Weather Converter

Weather Converter is a PHP-based tool designed to convert weather data between different units and formats. This project is intended for developers looking to integrate weather data conversion functionality into their applications.

## Features
- Convert temperature, wind speed, and pressure between different units.
- Easy integration with your existing PHP applications.
- Supports both metric and imperial units.

## Installation

1. Install dependencies using Composer:
```bash
composer require chak10/weather-converter
```

## Usage

Simply include the `WeatherConverter` class in your PHP code and use the methods to convert weather data between units.

Example:

```php
use WtConverter\Temperature;

$temp = new Temperature(25, 'c', 'f');
echo $temp->getResult(); // Output: 77 (Fahrenheit)