This composer package converts number to words.
Use the package manager composer to install library.
composer require usmonaliyev/number-to-word<?php
require 'vendor/autoload.php';
use Usmonaliyev\NumberToWord\Convertors\UzLatin;
UzLatin::convert(8_345_121); // Output: sakkiz million uch yuz qirq besh ming bir yuz yigirma bir