PHP code example of aldesrahim / laravel-timezone-indonesia
1. Go to this page and download the library: Download aldesrahim/laravel-timezone-indonesia 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/ */
aldesrahim / laravel-timezone-indonesia example snippets
use Aldesrahim\TimezoneIndonesia\Facades\TimezoneIndonesia;
TimezoneIndonesia::at(-6.2088, 106.8456); // 'Asia/Jakarta'
TimezoneIndonesia::at(1.3521, 103.8198); // null — Singapore, outside Indonesia