Skip to content

kalider/php-seb-generator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PHP SEB Generator

Librari ini menyediakan fitur generate konfigurasi SEB (Safe Exam Browser) terenkipsi.

Terinspirasi oleh ndum/laravel-seb.

Requirements

  • php7.4 atau terbaru.
  • ext-openssl
  • ext-zlib

Installation

Install via composer:

composer require kalider/php-seb-generator

Examples

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);

Issues / Contributions

Directly via GitHub

License

MIT License - Detail

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages