larabangla/lara-bangla-number

This package will be helpful for those people who want to convert english numerical number to bangla and bangla to english. It will also provide some basic numerical operation

v1.0 2019-09-09 17:23 UTC

This package is auto-updated.

Last update: 2024-09-25 16:55:19 UTC


README

Features

  • Convert english number to bangla number
  • Convert bangla number to english number
  • Basic summation, subtraction numerical operation

Installation

Go to terminal and run this command

composer require larabangla/lara-bangla-number

Wait for few minutes. Composer will automatically install this package for your project.

Quick Usages

After installation, go to your laravel controller where to use it. And add this

use larabangla\gonit;

Now you can use it by creating its object

$data = array('১১','১২',15,'৭.৫৬','১,৫০৫');
$bn = new gonit();
$bangla_total = $bn->sum($data);

Available function

Examples

sum() / sub() function and their parameter:

    sum(11, 2.256, '5.578', 78, 98, '1,205','bn');
    Or,
    sum('১১', '১২', 105, '১,৫০৫','en');
    Or,
    sum(11, 2.256, '৭.৫৬', '১,৫০৫');
    Or,
    sum([11, 2.256, '৭.৫৬', '১,৫০৫'],'en');
    Or,
    sum([11, 2.256, 56, 1205]);

Credits

License

This package is open-sourced software licensed under the MIT license.