UNPAR (Parahyangan Catholic University) recently got their system updated, so things like NPM got changed too. This will helps to parse the weirdness of those NPMs.
Despite of your enrollment year, we can distinguish your NPM format.
Example, my NPM, 2016730011
:
$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"
}
*/
- PHP v7.2 or later.
Execute this:
$ composer require chez14/unpar-npm-parser
Include these files, please make sure they're sorted as is:
require 'src/exception/badenrollmentyear.php';
require 'src/exception/notparseable.php';
require 'src/solverinterface.php';
require 'src/solvers/npm1955.php';
require 'src/solvers/npm2018.php';
require 'src/npmmodel.php';
require 'src/solver.php';
TBD
MIT.