PHP code example of waqar / numbertowords
1. Go to this page and download the library: Download waqar/numbertowords library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
waqar / numbertowords example snippets
php artisan vendor:publish --tag=config
class TestController extends Controller
{
public function index() {
echo NumberToWord::number2Word(10250); //Ten Thousand Two Hundred Fifty
}
}