PHP code example of marouva / open-sos

1. Go to this page and download the library: Download marouva/open-sos 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/ */

    

marouva / open-sos example snippets


// REQUEST 1
$sos = new SOS();
$sos->Start();
$sos->UserLogin('username', 'password');

$saved = $sos->SaveSession(); // save to DB

// REQUEST 2
$sos2 = new SOS();
$sos2->LoadSession($saved);

var_dump($sos2->MyClassification());
var_dump($sos2->GetTopicAttendance('2B'));
var_dump($sos2->UserInout('2020-11-2', '2021-2-2'));