Download the PHP package jitup1/amountinwords without Composer
On this page you can find all versions of the php package jitup1/amountinwords. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download jitup1/amountinwords
More information about jitup1/amountinwords
Files in jitup1/amountinwords
Download jitup1/amountinwords
More information about jitup1/amountinwords
Files in jitup1/amountinwords
Vendor jitup1
Package amountinwords
Short Description A package to convert amount into words
License MIT
Package amountinwords
Short Description A package to convert amount into words
License MIT
Please rate this library. Is it a good library?
Informations about the package amountinwords
Amount in Words
Installation
You can install the package via Composer. Run the following command in your Laravel project's root directory:
composer require jitup1/amountinwords
Usage
'providers' => [
// Other Service Providers
jitup1\amountinwords\AmountinwordsServiceProvider::class,
],
Step 3: Create a Route
You can create a route to access the controller in your routes/web.php (or routes/api.php) file:
use App\Http\Controllers\AmountController;
Route::get('/amount-in-words', [AmountController::class, 'index']);
Usage
$amount = 4000.00; // Example amount
// Call the correct method to convert amount to words with currency names
$words = $this->amountInWords->amountToWords($amount, 'USD', 'cents');
return response()->json([
'amount' => $amount,
'in_words' => $words,
Author
jitup123
Email: [email protected]All versions of amountinwords with dependencies
PHP Build Version
Package Version
The package jitup1/amountinwords contains the following files
Loading the files please wait ...