PHPackages                             eko/certificationy - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Testing &amp; Quality](/categories/testing)
4. /
5. eko/certificationy

ActiveLibrary[Testing &amp; Quality](/categories/testing)

eko/certificationy
==================

A library to create certification system

v2.2.0(5y ago)47026686[3 issues](https://github.com/certificationy/certificationy/issues)MITPHPPHP &gt;=7.2CI failing

Since Jul 1Pushed 4y ago43 watchersCompare

[ Source](https://github.com/certificationy/certificationy)[ Packagist](https://packagist.org/packages/eko/certificationy)[ Docs](http://github.com/certificationy/certificationy)[ RSS](/packages/eko-certificationy/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (9)Dependencies (3)Versions (14)Used By (0)

 [![](https://avatars0.githubusercontent.com/u/8029934?v=3&s=200)](https://avatars0.githubusercontent.com/u/8029934?v=3&s=200)

Certificationy
==============

[](#certificationy)

> This is provides a complete system to build multiple choice question system. This is useful for any company that need to test an applicant, or to make a certification website/training tool.

[![Join the chat at https://gitter.im/certificationy/certificationy](https://camo.githubusercontent.com/abe08b740a4156153736f791393ec4da6619c4be73212e75769f52edacc0e2b5/68747470733a2f2f6261646765732e6769747465722e696d2f4a6f696e253230436861742e737667)](https://gitter.im/certificationy/certificationy?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)[![SensioLabsInsight](https://camo.githubusercontent.com/ae72dd3d2dc5682a3c0e2f2933bb843b1a3ad754b8c669cc6936e962554cf079/68747470733a2f2f696e73696768742e73796d666f6e792e636f6d2f70726f6a656374732f63643362366263312d363332652d343931612d616266632d3433656463333930653163632f6d696e692e706e67)](https://symfony.sensiolabs.com/projects/cd3b6bc1-632e-491a-abfc-43edc390e1cc)

How to use it?
--------------

[](#how-to-use-it)

### Inside any PHP application

[](#inside-any-php-application)

As usual, use composer to install the library:

```
composer require "certificationy/certificationy"
```

Then, you need to load questions using a loader: for now only [PhpArray](Loaders/PhpArrayLoader.php) and [Yaml](Loaders/YamlLoader.php) loaders are provided, but thanks to the [Loader interface](Interfaces/LoaderInterface.php) you can create your owns.

For instance, let's say you have created a Yaml file with some few questions:

```
# question.yaml
category: basics
questions:
    -
        question: '2 + 2 = ?'
        answers:
            - {value: 4, correct: true}
            - {value: 3, correct: false}
            - {value: 2, correct: false}
```

Then you can do:

```
