PHPackages                             efin3/topic-types - 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. efin3/topic-types

ActivePackage

efin3/topic-types
=================

Escola Headless LMS Topic Types

03PHP

Since Jun 14Pushed 1y ago1 watchersCompare

[ Source](https://github.com/maatheeus/Topic-Type)[ Packagist](https://packagist.org/packages/efin3/topic-types)[ RSS](/packages/efin3-topic-types/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

Topic Types
===========

[](#topic-types)

Extending package for courses

[![codecov](https://camo.githubusercontent.com/bf9ad687312b1e505077bf5a2e29aa1daca995236618ddf632d1e46b0f11bb53/68747470733a2f2f636f6465636f762e696f2f67682f4573636f6c614c4d532f746f7069632d74797065732f6272616e63682f6d61696e2f67726170682f62616467652e7376673f746f6b656e3d4e52414e34523841475a)](https://codecov.io/gh/EscolaLMS/topic-types)[![phpunit](https://github.com/EscolaLMS/topic-types/actions/workflows/test.yml/badge.svg)](https://github.com/EscolaLMS/topic-types/actions/workflows/test.yml)[![downloads](https://camo.githubusercontent.com/8ed5dc0790e8fe82e51ed536ce73d552feeaeb2956bf14cc7755b516e939d403/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6573636f6c616c6d732f746f7069632d7479706573)](https://packagist.org/packages/escolalms/topic-types)[![downloads](https://camo.githubusercontent.com/5f92475777d5f9e125e1dcad46976302eb3c576e3934ca8dae5b9e1692020c46/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6573636f6c616c6d732f746f7069632d7479706573)](https://packagist.org/packages/escolalms/topic-types)[![downloads](https://camo.githubusercontent.com/ffc685ef1fd74b51771926858f94ad43ba630a51906087754977b252dc5e61f4/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f6573636f6c616c6d732f746f7069632d7479706573)](https://packagist.org/packages/escolalms/topic-types)[![Maintainability](https://camo.githubusercontent.com/b4f07c1d181753a18a9f4f5f2aa1980349f7adc5b12d95eaa4cb02b35fe42b5a/68747470733a2f2f6170692e636f6465636c696d6174652e636f6d2f76312f6261646765732f38316534643566306539376338393262646461382f6d61696e7461696e6162696c697479)](https://codeclimate.com/github/EscolaLMS/topic-types/maintainability)[![Test Coverage](https://camo.githubusercontent.com/ec062db6fc9f2616e40504111faf4a01638af086359f93a6c6a5a3a9504c2360/68747470733a2f2f6170692e636f6465636c696d6174652e636f6d2f76312f6261646765732f38316534643566306539376338393262646461382f746573745f636f766572616765)](https://codeclimate.com/github/EscolaLMS/topic-types/test_coverage)

What does it do
---------------

[](#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](https://h5p.org/)
- **Image**.
- **oEmbed**. oEmbed is a format for allowing an [embedded representation](https://oembed.com/) 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
----------

[](#installing)

This package is installing with package course - See [TopicTypes](https://github.com/EscolaLMS/topic-types)

Adding new Content Types
------------------------

[](#adding-new-content-types)

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

See [Courses readme](https://github.com/EscolaLMS/Courses#adding-new-topiccontent-type) for tutorial

Tests
-----

[](#tests)

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

Test details [![codecov](https://camo.githubusercontent.com/bf9ad687312b1e505077bf5a2e29aa1daca995236618ddf632d1e46b0f11bb53/68747470733a2f2f636f6465636f762e696f2f67682f4573636f6c614c4d532f746f7069632d74797065732f6272616e63682f6d61696e2f67726170682f62616467652e7376673f746f6b656e3d4e52414e34523841475a)](https://codecov.io/gh/EscolaLMS/topic-types) [![phpunit](https://github.com/EscolaLMS/topic-types/actions/workflows/test.yml/badge.svg)](https://github.com/EscolaLMS/topic-types/actions/workflows/test.yml)

Events
------

[](#events)

- `EscolaLms\TopicTypes\Events\TopicTypeChanged` =&gt; Event is dispatched when topic type value is changed.

### Admin panel

[](#admin-panel)

**Add topic type to lesson**

[![TopicType](docs/topic_types.png "TopicType")](docs/topic_types.png)

###  Health Score

15

—

LowBetter than 3% of packages

Maintenance27

Infrequent updates — may be unmaintained

Popularity3

Limited adoption so far

Community15

Small or concentrated contributor base

Maturity18

Early-stage or recently created project

 Bus Factor3

3 contributors hold 50%+ of commits

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

### Community

Maintainers

![](https://www.gravatar.com/avatar/8cfffa8ebd4d9ef61c79e42f42bc973ebcd04cb27124b2603bdb1fd8fa0a137f?d=identicon)[efin3](/maintainers/efin3)

---

Top Contributors

[![dyfero](https://avatars.githubusercontent.com/u/59400506?v=4)](https://github.com/dyfero "dyfero (23 commits)")[![mako321](https://avatars.githubusercontent.com/u/59456825?v=4)](https://github.com/mako321 "mako321 (15 commits)")[![qunabu](https://avatars.githubusercontent.com/u/214608?v=4)](https://github.com/qunabu "qunabu (15 commits)")[![HerbertIV](https://avatars.githubusercontent.com/u/62691459?v=4)](https://github.com/HerbertIV "HerbertIV (12 commits)")[![KrzysztofDziedziechEscolasoft](https://avatars.githubusercontent.com/u/96292232?v=4)](https://github.com/KrzysztofDziedziechEscolasoft "KrzysztofDziedziechEscolasoft (5 commits)")[![pa-cholek](https://avatars.githubusercontent.com/u/5345420?v=4)](https://github.com/pa-cholek "pa-cholek (4 commits)")[![maatheeus](https://avatars.githubusercontent.com/u/57773525?v=4)](https://github.com/maatheeus "maatheeus (2 commits)")[![dicani0](https://avatars.githubusercontent.com/u/58490533?v=4)](https://github.com/dicani0 "dicani0 (2 commits)")[![krzEscola](https://avatars.githubusercontent.com/u/85549830?v=4)](https://github.com/krzEscola "krzEscola (2 commits)")

### Embed Badge

![Health badge](/badges/efin3-topic-types/health.svg)

```
[![Health](https://phpackages.com/badges/efin3-topic-types/health.svg)](https://phpackages.com/packages/efin3-topic-types)
```

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
