Download the PHP package abdulsametsahin/php-timezone-converter without Composer
On this page you can find all versions of the php package abdulsametsahin/php-timezone-converter. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download abdulsametsahin/php-timezone-converter
More information about abdulsametsahin/php-timezone-converter
Files in abdulsametsahin/php-timezone-converter
Package php-timezone-converter
Short Description A PHP utility library for seamless conversion between Windows and IANA timezones, enabling interoperability and enhancing date/time handling across different systems. Ideal for projects requiring compatibility with various timezone standards.
License MIT
Informations about the package php-timezone-converter
PHP Timezone Converter
The PHP Timezone Converter is a utility library for seamless conversion between Windows and IANA (Olson) timezones, enabling interoperability and enhancing date/time handling across different systems. Ideal for projects requiring compatibility with various timezone standards, this library simplifies the conversion process, making your application more versatile and user-friendly.
Features
- Convert from IANA (Olson) timezone to Windows timezone and vice versa.
- Simple and easy-to-use interface.
- Supports a wide range of PHP versions (>=7.4).
Installation
Use Composer to install the PHP Timezone Converter into your project:
Usage
The Timezone Converter can be used statically, offering straightforward methods for conversion:
Convert from Olson to Windows Timezone
Convert from Windows to Olson Timezone
Handling Invalid Timezones
Both conversion methods throw an InvalidArgumentException
if the provided timezone is invalid or not supported.
Requirements
- PHP >= 7.4
Contributing
Contributions are welcome! Please feel free to submit pull requests or open issues to improve the library or add more features.