PHP library which provides consistent interface for converting numbers between various numeral systems.
PHP library which provides consistent interface for converting numbers between various numeral systems, for example Binary, Hexadecimal, Roman, etc.
The preferred method of installation is via Composer. Run the following
command to install the latest version of a package and add it to your project's
composer require nikolaposa/num-converter
<?php use NumConverter\StaticConverter as NumConverter; use NumConverter\NumeralSystems; echo NumConverter::convert(2015, NumeralSystems::DECIMAL, NumeralSystems::ROMAN); //MMXV
See more examples.
Copyright 2017 Nikola Poša. Released under MIT License - see the
LICENSE file for details.