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 4w 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 31% 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

3859d 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.

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

Well integrated, advanced private discussions.

59112.4k11](/packages/fof-byobu)[flarum/tags

Organize discussions into a hierarchy of tags and categories.

38744.9k138](/packages/flarum-tags)[fof/gamification

Upvotes and downvotes for your Flarum community

4062.0k7](/packages/fof-gamification)[fof/polls

 A Flarum extension that adds polls to your discussions

25130.2k9](/packages/fof-polls)[michaelbelgium/flarum-discussion-views

Add views to flarum discussions

3055.4k6](/packages/michaelbelgium-flarum-discussion-views)

PHPackages © 2026

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