PHP code example of ezadev / bmkg
1. Go to this page and download the library: Download ezadev/bmkg 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/ */
ezadev / bmkg example snippets
use Ezadev\Bmkg\Cuaca;
$cuaca = new Cuaca('Kalimantan Tengah');
// Respon dalam bentuk Json
$cuaca->get()->json();
// Respon dalam bentuk Array
var_dump($cuaca->get()->json);
// Respon dalam bentuk xml
var_dump($cuaca->get()->xml);