PHP code example of pravodev / kawalcorona-laravel

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

    

pravodev / kawalcorona-laravel example snippets




// pake facades
$data_provinsi = KawalCorona::getProvinces();


// tanpa facades
use Pravodev\KawalCoronaLaravel\KawalCorona;

$corona = new KawalCorona;
$corona->getProvinces();


php artisan vendor:publish --provider="Pravodev\KawalCoronaLaravel\ServiceProvider"