{"id":13519786,"url":"https://github.com/certificationy/certificationy","last_synced_at":"2025-12-27T09:36:51.433Z","repository":{"id":17885285,"uuid":"20831166","full_name":"certificationy/certificationy","owner":"certificationy","description":"The core library to create tests and certifications","archived":false,"fork":false,"pushed_at":"2021-07-13T23:24:18.000Z","size":405,"stargazers_count":469,"open_issues_count":2,"forks_count":86,"subscribers_count":45,"default_branch":"master","last_synced_at":"2025-03-26T09:48:18.982Z","etag":null,"topics":["exam","library","multiple-choice","php","symfony"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/certificationy.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-06-14T12:00:08.000Z","updated_at":"2025-02-28T18:09:57.000Z","dependencies_parsed_at":"2022-08-24T11:10:55.860Z","dependency_job_id":null,"html_url":"https://github.com/certificationy/certificationy","commit_stats":null,"previous_names":[],"tags_count":12,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/certificationy%2Fcertificationy","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/certificationy%2Fcertificationy/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/certificationy%2Fcertificationy/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/certificationy%2Fcertificationy/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/certificationy","download_url":"https://codeload.github.com/certificationy/certificationy/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246482954,"owners_count":20784803,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["exam","library","multiple-choice","php","symfony"],"created_at":"2024-08-01T05:02:03.177Z","updated_at":"2025-12-27T09:36:51.407Z","avatar_url":"https://github.com/certificationy.png","language":"PHP","funding_links":[],"categories":["PHP"],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e\n    \u003cimg src=\"https://avatars0.githubusercontent.com/u/8029934?v=3\u0026s=200\"\u003e\n\u003c/p\u003e\n\n# Certificationy\n\u003e This is provides a complete system to build multiple choice question system. This is useful for any company that need to test an applicant,\n  or to make a certification website/training tool.\n\n[![Join the chat at https://gitter.im/certificationy/certificationy](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/certificationy/certificationy?utm_source=badge\u0026utm_medium=badge\u0026utm_campaign=pr-badge\u0026utm_content=badge) \n[![SensioLabsInsight](https://insight.symfony.com/projects/cd3b6bc1-632e-491a-abfc-43edc390e1cc/mini.png)](https://symfony.sensiolabs.com/projects/cd3b6bc1-632e-491a-abfc-43edc390e1cc)\n\n## How to use it?\n\n### Inside any PHP application\n\nAs usual, use composer to install the library:\n\n```bash\ncomposer require \"certificationy/certificationy\"\n```\n\nThen, you need to load questions using a loader: for now only [PhpArray](Loaders/PhpArrayLoader.php) and [Yaml](Loaders/YamlLoader.php) loaders\nare provided, but thanks to the [Loader interface](Interfaces/LoaderInterface.php) you can create your owns.\n\nFor instance, let's say you have created a Yaml file with some few questions:\n\n```yaml\n# question.yaml\ncategory: basics\nquestions:\n    -\n        question: '2 + 2 = ?'\n        answers:\n            - {value: 4, correct: true}\n            - {value: 3, correct: false}\n            - {value: 2, correct: false}\n```\n\nThen you can do:\n\n```php\n\u003c?php\nuse Certificationy\\Loaders\\YamlLoader;\n\n$loader = new YamlLoader(['path/to/question.yaml']);\n$questions = $loader-\u003eload(1, []); // (nbQuestions, fromCategories)\n$loader-\u003ecategories(); // ['basics']\n\n$set = Set::create($questions);\n```\n\nThen, for each question you can set user answers (as answers can be multiple):\n\n```php\n$set-\u003esetUserAnswers(0, [4]); // (questionIndex, [values])\n```\n\nAt every moment, you can get the correct and wrong answers (non answered questions are wrong).\n\n```php\n$set-\u003egetCorrectAnswers();\n$set-\u003egetWrongAnswers();\n```\n\n## CLI tool\n\nA CLI tool is available under the following repository: http://www.github.com/certificationy/certificationy-cli.\n\n## Please, help us to complete our official packs of questions!\n\nYou can submit PR with your own questions into the packs located under the [Certificationy organization](https://github.com/certificationy).\n\nWe provide packs for both [PHP5](https://github.com/certificationy/php-pack) and [Symfony](https://github.com/certificationy/symfony-pack) certifications.\n\nMore we will have questions, the more powerful will be this tool!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcertificationy%2Fcertificationy","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcertificationy%2Fcertificationy","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcertificationy%2Fcertificationy/lists"}