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. matpompili/flarum-latex

ActiveFlarum-extension

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 2mo 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 32% 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

3811d ago

Major Versions

0.1.2 → v1.0.02015-12-05

### Community

Maintainers

![](https://www.gravatar.com/avatar/822fb1e98242bb2685438fc35673d942c4be2b78f8a176ac466fe8615fd33d69?d=identicon)[matpompili](/maintainers/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

[fof/upload

The file upload extension for the Flarum forum with insane intelligence.

188171.7k15](/packages/fof-upload)[fof/byobu

Well integrated, advanced private discussions.

61105.8k9](/packages/fof-byobu)[fof/gamification

Upvotes and downvotes for your Flarum community

4157.1k6](/packages/fof-gamification)[flarum/suspend

Suspend users so they can't post.

10404.5k16](/packages/flarum-suspend)[fof/user-bio

Add a user bio to user profiles

2196.5k9](/packages/fof-user-bio)[flarum/extension-manager

An extension manager to install, update and remove extension packages from the interface (Wrapper around composer).

12211.5k](/packages/flarum-extension-manager)

PHPackages © 2026

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