PHPackages                             matpompili/flarum-latex - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. matpompili/flarum-latex

ActiveFlarum-extension[Utility &amp; Helpers](/categories/utility)

matpompili/flarum-latex
=======================

Provides LaTeX functionalitty to Flarum

v1.0.0(10y ago)1273[2 issues](https://github.com/matpompili/flarum-latex/issues)MITJavaScript

Since Dec 5Pushed 10y ago1 watchersCompare

[ Source](https://github.com/matpompili/flarum-latex)[ Packagist](https://packagist.org/packages/matpompili/flarum-latex)[ RSS](/packages/matpompili-flarum-latex/feed)WikiDiscussions master Synced 2w ago

READMEChangelog (1)Dependencies (1)Versions (3)Used By (0)

flarum-LaTeX
============

[](#flarum-latex)

**flarum-LaTeX** is a [Flarum](https://github.com/flarum/flarum/) extension to support LaTeX, using [KaTeX](https://github.com/Khan/KaTeX/).

> Flarum is a free, open-source forum software built with PHP and Mithril.js.

> KaTeX is a fast, easy-to-use JavaScript library for TeX math rendering on the web.

Features
--------

[](#features)

With flarum-Latex you can render LaTeX mathematical expressions inside your forum just by typing them, in **the same way** you would do your TeX document.

It supports:

- Inline expressions like `$\sin\theta$`, as well as
- Display expressions, such as `$$\frac{\cos(kx)}{\cos(x)}$$`.

It also doesn't mess up with **Markdown** and **BBCode** extensions, so you can use all of them at the same time.

This is how the previous paragraph will look like:

[![Imgur](https://camo.githubusercontent.com/cb13847302ee7c0484289accdf651e57fec8df515f9bb2aeb18a14d595f12ae2/687474703a2f2f692e696d6775722e636f6d2f426845494444302e706e67 "This is how the previous paragraph will look like")](https://camo.githubusercontent.com/cb13847302ee7c0484289accdf651e57fec8df515f9bb2aeb18a14d595f12ae2/687474703a2f2f692e696d6775722e636f6d2f426845494444302e706e67)

Install
-------

[](#install)

The only way to get flarum-latex is with composer: in your flarum folder run

```
composer require matpompili/flarum-latex

```

Then enable it you administration panel. Done!

Usage
-----

[](#usage)

You can write mathematical expressions in the composer and when the post is submitted it will be rendered correctly, even if the preview is messed up by Markdown, BBCode and emojis.

### Tip

[](#tip)

If you want to actually **show** the LaTeX code, you must use Markdown in the following way:

```
This is an expression I don't want to render
```
$$\cos(\pi) + 1 = 0$$
```
While this is going to be rendered: $yes$

```

###  Health Score

24

—

LowBetter than 30% of packages

Maintenance0

Infrequent updates — may be unmaintained

Popularity13

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity64

Established project with proven stability

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

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.

###  Release Activity

Cadence

Every ~0 days

Total

2

Last Release

3904d ago

Major Versions

0.1.2 → v1.0.02015-12-05

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/6500688?v=4)[Matteo Pompili](/maintainers/matpompili)[@matpompili](https://github.com/matpompili)

---

Top Contributors

[![matpompili](https://avatars.githubusercontent.com/u/6500688?v=4)](https://github.com/matpompili "matpompili (21 commits)")

### Embed Badge

![Health badge](/badges/matpompili-flarum-latex/health.svg)

```
[![Health](https://phpackages.com/badges/matpompili-flarum-latex/health.svg)](https://phpackages.com/packages/matpompili-flarum-latex)
```

###  Alternatives

[flarum-lang/russian

Russian language pack for Flarum.

13129.1k](/packages/flarum-lang-russian)[fof/byobu

Well integrated, advanced private discussions.

59126.7k15](/packages/fof-byobu)[flarum-lang/french

French language pack to localize the Flarum forum software plus its official and third-party extensions.

1941.0k](/packages/flarum-lang-french)[fof/polls

 A Flarum extension that adds polls to your discussions

26137.4k9](/packages/fof-polls)[fof/discussion-language

Specify the language a discussion is written in &amp; sort by language

1035.6k7](/packages/fof-discussion-language)[flarum-lang/german

German language pack for Flarum.

2255.8k](/packages/flarum-lang-german)

PHPackages © 2026

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