PHP Package: kwn/number-to-words

PHP library for converting numbers to words with ease and precision, ideal for language localization and spelling out amounts.

Current Version: 2.12.0
Last Updated: 2025-07-01
PHP Requirement: >=7.4
Dependencies:
phpunit/phpunit
⚠️ To ensure full functionality, the above dependencies might be required.

Package Description

The number-to-words PHP library offers a simple yet powerful solution for converting numeric figures into written words, aiding in currency representation, invoice generation, and automated report narration. With support for multiple languages and custom formatting options, this tool simplifies the handling of numerical data by providing a seamless conversion process.

📦 Show all available classes🔗 View on GitHub

Download Latest Version: 2.12.0

Download Download v2.12.0

Previous Versions

Code Integration Example

Make sure to include the correct namespace and class paths for proper usage.

<?php
// Example from PHPlibraries.com
require_once 'libs/kwn/number-to-words/2.12.0/loader.php';
require_once 'libs/sebastianbergmann/phpunit/12.4.1/loader.php';

use Kwn\NumberToWords\NumberToWords;

$obj = new NumberToWords();
echo '✅ Test OK: ' . get_class($obj);
?>

We aim to make using PHP packages easier without Composer. If something doesn't work, let us know — we'll fix it promptly.

Community Discussion

Ask questions, share tips, or report issues below.