PHP code example of koba / informat-php-client
1. Go to this page and download the library: Download koba/informat-php-client 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/ */
koba / informat-php-client example snippets
use Koba\Informat\Informat;
use Koba\Informat\Scopes\AllScopesStrategy;
$informat = new Informat(
'your-client-id',
'your-client-secret',
new AllScopesStrategy('000001', '000002', '000003'),
);
$informat
->students()
->getStudents('000001')
->send();
$informat
->students()
->getStudent(
'000001', // institute number
'bd26bb65-f54a-488d-866b-e1f9927d6be5' // student id
)
->setReferenceDate(new DateTime())
->send();
composer