PHP code example of dlnsk / uqfi

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

    

dlnsk / uqfi example snippets


// Autoload the dependencies
k\UQFI\Importer::init();

// Use
$format = Dlnsk\UQFI\Importer::getFormat('gift', $file_path);
$questions = $format->readQuestions(); // or
$decorated = $format->readDecoratedQuestions(); // to get questions with much nicer structure

Importer::init();

$format = Importer::getFormat($format, $file_path);

$format = new Gift($file_path);

$questions = $format->readQuestions();

$questions = $format->readDecoratedQuestions();