rmunate/
SpellNumber
g4t.io

Convert Numbers to Words in Laravel with SpellNumber

by Paul Redmond

SpellNumber is a package to convert words in Laravel easily using the PHP INTL extension.

README from rmunate/SpellNumber Open on GitHub →

Convert Numbers to Words in Laravel

Project Discontinued

This project has been discontinued.

Now, this functionality is part of the Core of Laravel Framework. Check out the usage of the Illuminate\Support\Number class in the official Laravel documentation.

Details:





Introduction

Easily convert numbers to words in Laravel using this library, which leverages the native PHP INTL extension to perform conversion effortlessly. With this library, you can convert numbers to words in various languages and also obtain the value in currency format according to the selected language. Supported languages include English, Spanish, Portuguese, French, Italian, Romanian, Hindi, Polish, Vietnamese and Persian (Farsi).

This library is compatible with PHP +8.0 and Laravel versions 8.0 and higher

Spell Number Logo

Requirements

For this solution to work properly you must have at least a version of PHP 8.0 since the package in its CORE has typed data.

You must have Laravel Framework version 8 or higher.

Finally, our package relies on the native PHP INTL extension, check in your php.ini that you have it.

Install

Composer

To install the dependency via Composer, execute the following command:

composer require rmunate/spell-number

The package will automatically register itself.

That's all!

Usage

📖📖📖 FULL DOCUMENTATION 📖📖📖

Contributing

If you want to add support for a new language or want to develop new features, you can submit your requests to the main branch of the repository.

To date, the following world-class developers have contributed their knowledge.

To whom we thank for supporting making programming easier.

License

This project is under the MIT License.

🌟 Support My Projects! 🚀

Become a Sponsor

Make any contributions you see fit; the code is entirely yours. Together, we can do amazing things and improve the world of development. Your support is invaluable. ✨

If you have ideas, suggestions, or just want to collaborate, we are open to everything! Join our community and be part of our journey to success! 🌐👩‍💻👨‍💻

More from the ecosystem

marcreichel/
laya-php
g4t.io
3 53

LayaPHP: Self-Hosted Text Classification for PHP and Laravel

Classify text in PHP without an LLM bill: typed decisions in 100+ languages, self-hosted. Laravel-ready SDK for Laya, a Jev AI alternative.

ai classification decision-engine
marcreichel/laya-php via Laravel News
Josh-Dovey/
postcodes-laravel
g4t.io
5 9

Postcodes for Laravel: GB Postcode Lookup and Geography Data

Postcodes for Laravel adds typed GB postcode lookups, validation, geography data, distance searches, and test fakes through the GB Postcodes API.

Josh-Dovey/postcodes-laravel via Laravel News
RedberryProducts/
mailbox-for-laravel
g4t.io
4 115

Mailbox for Laravel: Preview and Test Rendered Email

Mailbox for Laravel captures outgoing mail in a local dashboard and lets you test rendered HTML, recipients, and attachments with fluent assertions.

RedberryProducts/mailbox-for-laravel via Laravel News