sm-alfariz / indonesian-date-format
Indonesia date Format package
1.0.4
2017-02-27 15:52 UTC
Requires (Dev)
- phpunit/phpunit: 4.0.*
This package is not auto-updated.
Last update: 2024-12-16 16:20:22 UTC
README
indonesian-date-format
Indonesia (ID) date format ##instalation
composer require sm-alfariz/indonesian-date-format
##how to use
<?php require_once 'vendor/autoload.php'; use Fendi\IndonesianDate\IndonesiaDate; $tgl = new IndonesiaDate; echo $tgl->blogDate(date("Y-m-d")); //echo blog date style in indonosian format $time = date('2016-08-22 21:25:43'); echo $tgl->humanDifSimple($time); //result " 4 hari " echo $tgl->humanDif($time); //result " 3 hari 3 jam 54 menit yang lalu "