escolalms/topic-types

Escola Headless LMS Topic Types

Installs: 13 607

Dependents: 9

Suggesters: 0

Security: 0

Stars: 0

Watchers: 1

Forks: 0

Open Issues: 0

Type:package

0.2.51 2024-07-02 07:24 UTC

README

Extending package for courses

codecov phpunit downloads downloads downloads Maintainability Test Coverage

What does it do

This repository stores code for EscolaLMS Content Topic types. At the moment there are the following types:

Those types are used for building headless Course.

Installing

This package is installing with package course - See TopicTypes

Adding new Content Types

It's possible to add any new content type, for example HTML Text.

See Courses readme for tutorial

Tests

Run ./vendor/bin/phpunit --filter 'EscolaLms\\TopicTypes\\Tests' to run tests. See tests folder as it's quite good staring point as documentation appendix.

Test details codecov phpunit

Events

  • EscolaLms\TopicTypes\Events\TopicTypeChanged => Event is dispatched when topic type value is changed.

Admin panel

Add topic type to lesson

TopicType