PHP code example of chez14 / unpar-npm-parser
1. Go to this page and download the library: Download chez14/unpar-npm-parser 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/ */
chez14 / unpar-npm-parser example snippets
$npm_info = \Chez14\NpmParser\Solver::getInfo("2016730011");
var_dump($npm_info);
/*
array(7) {
["enrollment_year"]=>
string(4) "2016"
["prodi_id"]=>
string(3) "730"
["no_urut"]=>
string(3) "011"
["jurusan"]=>
string(18) "Teknik Informatika"
["fakultas_id"]=>
string(1) "7"
["fakultas"]=>
string(29) "Teknologi Informasi dan Sains"
["jenjang"]=>
string(2) "S1"
}
*/