Librari ini menyediakan fitur generate konfigurasi SEB (Safe Exam Browser) terenkipsi.
Terinspirasi oleh ndum/laravel-seb.
- php7.4 atau terbaru.
- ext-openssl
- ext-zlib
Install via composer:
composer require kalider/php-seb-generator
Generate to string:
use Kalider\PhpSebGenerator\SebConfigGenerator;
$config = file_get_contents('examples/example-seb-config.json');
$startPassword = 'test';
$quitPassword = 'test';
$adminPassword = 'test';
$sebConfig = json_decode($config, true);
$encryptedSebConfig = SebConfigGenerator::generate($sebConfig, $startPassword, $quitPassword, $adminPassword);
Generate to file:
use Kalider\PhpSebGenerator\SebConfigGenerator;
$config = file_get_contents('examples/example-seb-config.json');
$startPassword = 'test';
$quitPassword = 'test';
$adminPassword = 'test';
$sebConfig = json_decode($config, true);
$path = 'output/test.seb';
$created = SebConfigGenerator::generateToFile($sebConfig, $path, $startPassword, $quitPassword, $adminPassword);
Directly via GitHub
MIT License - Detail