escolalms/topic-types
Escola Headless LMS Topic Types
Maintainers
Requires
- php: >=7.4
- davidbadura/faker-markdown-generator: ^1.1
- escolalms/courses: ^0.4
- escolalms/headless-h5p: ^0
- laravel/framework: >=8.0
- pbmedia/laravel-ffmpeg: ^7|^8
- smalot/pdfparser: ^2.5
Requires (Dev)
- escolalms/courses-import-export: ^0
- nunomaduro/larastan: ^2.0
- orchestra/testbench: >=5.0
- phpunit/phpunit: ^9.0
Suggests
- escolalms/cmi5: ^0
- escolalms/courses: Topic types is a package related to escolalms/courses without which it may not work properly.
Provides
None
Conflicts
None
Replaces
None
MIT eb24fad04a6364ef259d0709316a4f9e293c00ab
- Mateusz Wojczal <mateusz.wojczal.woop@escola.pl>
- PaweΕ ChoΕaj <pawel.cholaj.woop@escola.pl>
This package is auto-updated.
Last update: 2026-06-24 15:01:25 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:
- Audio.
- H5P. Reusable Interactive HTML5 Content
- Image.
- oEmbed. oEmbed is a format for allowing an embedded representation of a URL on third party sites.
- RichText. Markdown rich texts. Like github readme files
- Video. Video with possible conversion to HLS format.
- PDF.
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
