PHPackages                             reflar/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. reflar/latex

AbandonedArchivedFlarum-extension

reflar/latex
============

Renders LaTeX expressions.

0.2.0(7y ago)51891[1 issues](https://github.com/ReFlar/latex/issues)[1 PRs](https://github.com/ReFlar/latex/pulls)MITPHP

Since Sep 15Pushed 6y ago3 watchersCompare

[ Source](https://github.com/ReFlar/latex)[ Packagist](https://packagist.org/packages/reflar/latex)[ RSS](/packages/reflar-latex/feed)WikiDiscussions master Synced 1mo ago

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

LaTeX by ReFlar
===============

[](#latex-by-reflar)

[![License](https://camo.githubusercontent.com/7013272bd27ece47364536a221edb554cd69683b68a46fc0ee96881174c4214c/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d626c75652e737667)](https://camo.githubusercontent.com/7013272bd27ece47364536a221edb554cd69683b68a46fc0ee96881174c4214c/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d626c75652e737667) [![Latest Stable Version](https://camo.githubusercontent.com/fdfd08a1e9015d906c2bcdaffe4dd5e461e069bdca8e2521925c91dfa49f96f3/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f7265666c61722f6c617465782e737667)](https://packagist.org/packages/reflar/latex)

A [Flarum](http://flarum.org) extension to render LaTeX expressions in your posts.

Original by [Flagrow](https://github.com/Flagrow).

### Installation

[](#installation)

Use [Bazaar](https://discuss.flarum.org/d/5151-flagrow-bazaar-the-extension-marketplace) or install manually with composer:

```
composer require reflar/latex
```

### Updating

[](#updating)

```
composer update reflar/latex
php flarum cache:clear
```

### Features

[](#features)

With reflar/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)}$$`.

There's also an option so it 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 would look like:

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

### Usage

[](#usage)

Write LaTeX expressions in your post like you would in your TeX editor.

### 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$

```

### Links

[](#links)

- [Packagist](https://packagist.org/packages/reflar/latex)
- [Original by Flagrow](https://github.com/flagrow/latex)

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance16

Infrequent updates — may be unmaintained

Popularity16

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity53

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 57.1% 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

Unknown

Total

1

Last Release

2792d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/1298cdc0b2402a1aa34fb75a254947d655e090d62bd0531311331d369cac934e?d=identicon)[datitisev](/maintainers/datitisev)

---

Top Contributors

[![matpompili](https://avatars.githubusercontent.com/u/6500688?v=4)](https://github.com/matpompili "matpompili (8 commits)")[![dsevillamartin](https://avatars.githubusercontent.com/u/6401250?v=4)](https://github.com/dsevillamartin "dsevillamartin (4 commits)")[![santiagobiali](https://avatars.githubusercontent.com/u/13974716?v=4)](https://github.com/santiagobiali "santiagobiali (2 commits)")

---

Tags

mathexpressionsflarumlatexflagrowtex

### Embed Badge

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

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

###  Alternatives

[fof/sitemap

Generate a sitemap

1988.7k2](/packages/fof-sitemap)[fof/mason

Add custom fields to discussions

206.0k](/packages/fof-mason)

PHPackages © 2026

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