PHP code example of araditama / siam-ub-auth
1. Go to this page and download the library: Download araditama/siam-ub-auth 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/ */
araditama / siam-ub-auth example snippets
use Araditama\AuthSIAM\AuthSIAM;
$auth = new AuthSIAM;
// contoh array dari credentials yang akan diproses
$data = [
'nim' => '15515020xxxxxx',
'password' => 'secret'
];
// memanggil method auth dari objek yang telah dibuat dengan method GET
$result = $auth->auth($data);