chak10/weather-converter

A library for weather-related conversions.

0.0.1 2024-11-08 21:18 UTC

This package is auto-updated.

Last update: 2025-06-08 22:38:30 UTC


README

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:
    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:

use WtConverter\Temperature;

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