Weave Code
Code Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Number To Words Laravel Package

kwn/number-to-words

Convert numbers and currency amounts to words in PHP. Supports multiple languages via RFC 3066 identifiers, with number and currency transformers. Simple API: create transformers or use static calls to render values like 5120 as “five thousand one hundred twenty”.

View on GitHub
Deep Wiki
Context7
3.0.1

What's Changed

New Contributors

Full Changelog: https://github.com/kwn/number-to-words/compare/3.0.0...3.0.1

3.0.0

Breaking Changes

  • ROL → RON: Romanian currency code updated from deprecated ROL to current ISO 4217 code RON across all transformers
  • PHPUnit 9 → 11: Test infrastructure upgraded (requires PHP 8.2+)

New Features

  • Base currency list: All currency transformers now support a canonical set of 51 currencies. Previously several transformers had only 2–14 currencies; all now have full coverage
  • MXN (Mexican Peso): Added to all currency transformers that were missing it
  • Malay currency transformer: MalaysianCurrencyTransformer renamed to MalayCurrencyTransformer for naming consistency with MalayNumberTransformer

Bug Fixes

  • Swedish: Fixed capitalized Minus prefix, sjutio → sjuttio (70), missing plural inflection for millions/billions
  • Danish: Missing og connector after hundreds (e.g. et hundrede en → et hundrede og en)
  • German currency: eins Euro → ein Euro for amounts of 1, and ein tausend → eintausend (wrong word separator)
  • Yoruba: Zero returned empty string instead of odo
  • Romanian currency: Negative amounts ignored the minus sign

Test Coverage

  • Added ~120 new test cases across 16 transformers covering: negative numbers, full numeric ranges, and newly added currencies
  • Added MXN test cases in 8 languages (English, German, Polish, Russian, Spanish, French, Danish, Turkish)

CI / Infrastructure

  • Migrated from Code Climate to Qlty.sh for coverage reporting (QLTY_COVERAGE_TOKEN)
  • xdebug now installed via pecl instead of deprecated install-php-extensions (fixes PHP 8.5 support)
  • HTML coverage report saved as CircleCI artifact
  • PHPUnit annotations (@dataProvider) replaced with PHP 8 attributes (#[DataProvider])
  • Data provider methods made public static (PHPUnit 11 requirement)
  • Abstract base test classes renamed: CurrencyTransformerTest → CurrencyTransformerTestCase, NumberTransformerTest → NumberTransformerTestCase

Removed

  • src/Legacy/Numbers/Words/Locale/Uz.php: dead code - Uzbek has its own modern transformer
2.12.0

What's Changed

New Contributors

Full Changelog: https://github.com/kwn/number-to-words/compare/2.11.2...2.12.0

2.11.2

What's Changed

New Contributors

Full Changelog: https://github.com/kwn/number-to-words/compare/2.11.1...2.11.2

2.11.1

What's Changed

New Contributors

Full Changelog: https://github.com/kwn/number-to-words/compare/2.11.0...2.11.1

2.11.0

What's Changed

New Contributors

Full Changelog: https://github.com/kwn/number-to-words/compare/2.10.0...2.11.0

2.10.0

What's Changed

New Contributors

Full Changelog: https://github.com/kwn/number-to-words/compare/2.9.1...2.10.0

2.9.1
2.9.0

What's Changed

New Contributors

Full Changelog: https://github.com/kwn/number-to-words/compare/2.8.0...2.9.0

2.7.2
2.7.1
2.7.0

What's Changed

New Contributors

Full Changelog: https://github.com/kwn/number-to-words/compare/2.6.4...2.7.0

2.6.3

What's Changed

New Contributors

Full Changelog: https://github.com/kwn/number-to-words/compare/2.6.2...2.6.3

2.6.2
2.6.1

What's Changed

New Contributors

Full Changelog: https://github.com/kwn/number-to-words/compare/2.6.0...2.6.1

2.6.0
2.5.0

What's Changed

New Contributors

Full Changelog: https://github.com/kwn/number-to-words/compare/2.4.3...2.5.0

2.4.2

What's Changed

New Contributors

Full Changelog: https://github.com/kwn/number-to-words/compare/2.4.1...2.4.2

2.4.1

What's Changed

New Contributors

Full Changelog: https://github.com/kwn/number-to-words/compare/2.4.0...2.4.1

Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
terminal42/code-quality-tools
codifyo/ts-generator-bundle
andydefer/laravel-cluster
testo/fiber
mintobit/jobqueue
a4sex/maintenance-bundle
a4sex/entity-date-update
a4sex/client-identifier
a4sex/base-utilites
a4sex/key-value-storage
a4sex/micro-status
chilldev/dependency-injection-extra
datinglibre/datinglibre-app-api
biberltd/corebundle
bricre/symfony-bundle-test
biberltd/logbundle
dominium/http-adapter-bundle
dominium/google-analytics
a4sex/auto-clean-entity
christhompsontldr/laravel-inky