PHP code example of abdulmajidcse / laravel-code-mask

1. Go to this page and download the library: Download abdulmajidcse/laravel-code-mask 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/ */

    

abdulmajidcse / laravel-code-mask example snippets


'providers' => [
    // ...
    Abdulmajidcse\LaravelCodeMask\LaravelCodeMaskServiceProvider::class,
];

use Abdulmajidcse\LaravelCodeMask\Facades\CodeMaskFacade;

$id = CodeMaskFacade::generateId(123, 10, 0, '2701');

echo $id; // output: 27010000000123

use Abdulmajidcse\LaravelCodeMask\Facades\CodeMaskFacade;

$moneyWithLeftCurrency = CodeMaskFacade::moneyFormat(100000000.556, 'TK');
echo $moneyWithLeftCurrency; // output: TK 10,00,00,000.56

$moneyWithRightCurrency = CodeMaskFacade::moneyFormat(100000000.556, '', 'BDT');
echo $moneyWithRightCurrency; // output: 10,00,00,000.56 BDT