Download the PHP package dlnsk/uqfi without Composer

On this page you can find all versions of the php package dlnsk/uqfi. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package uqfi

Universal Question Format Importer

Overview

Universal question format importer is a wrapper to native Moodle's question engine. It uses code of Moodle format imports as is. Some classes and libraries are replaced by stub.

It supports next question's bank formats:

  1. GIFT
  2. AIKEN
  3. MissingWord
  4. MoodleXML
  5. BlackBoard 6

Installation

Simply add a dependency on dlnsk/uqfi to your project's composer.json file if you use Composer to manage the dependencies of your project. Use following command to add the package to your project's dependencies:

Usage

Laravel

If you're going to use this package in Laravel, you don't need to load dependencies and initialise. Just use.

Methods

init()

Some simple steps to fool Moodle native library.

getFormat()

Creates a formatter class for given format and file. The format parameter can be one of "gift", "aiken", "missingword", "moodlexml" or "blackboard6". Keep in mind that "blackboard6" format require zip file as source of a questions bank.

You also can directly create a necessary class:

readQuestions()

Returns the set of question objects with native Moodle structure. This structure maybe good to save questions into Moodle database, but not quite well to use.

readDecoratedQuestions()

Returns a set of question objects with a slightly fixed structure. We move some dependent fields into parent elements, transform files' data, and so on. The structure of a decorated question is quite close to MoodleXML file.

See BaseFormat class for some helpful methods.

Question types

Currently, the package supports next question types:

  1. calculated / calculatedsimple
  2. essay
  3. matching / match / ddmatch
  4. multichoice
  5. numerical
  6. ordering
  7. shortanswer

Third party question types

To add support for any other type:

  1. Copy third party question type sources to qtypes directory of the package.
  2. Suppress any errors.
  3. Make pull request.

All versions of uqfi with dependencies

PHP Build Version
Package Version
Requires ext-mbstring Version *
nelexa/zip Version ^3.0|^4.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package dlnsk/uqfi contains the following files

Loading the files please wait ...