PHP code example of s1k3 / bangla-date

1. Go to this page and download the library: Download s1k3/bangla-date 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/ */

    

s1k3 / bangla-date example snippets

 php
 'providers' => [
        S1K3\Bangla\Date\BanglaDateServiceProvider::class
 ]
 
 php
php artisan vendor:publish --provider="S1K3\Bangla\Date\BanglaDateServiceProvider"
 php
bangla_date(time()) // OUTPUT ১২ চৈত্র ১৪২৫
 php
bangla_date(time(),"en") // OUTPUT ২৬ মার্চ ২০১৯
 php
bangla_date(time(),"bn") // OUTPUT ১২ চৈত্র ১৪২৫