Key details

  1. Core 0.21.0 and CommonMark 0.21.0 listed November 19; specialist article dated December 2.
  2. PHP ^8.4, ctype, DOM and mbstring; Imagick optional for PNG.
  3. MIT code and OFL 1.1 bundled font.
  4. SVG uses paths; OMML output can be embedded as editable Word equations.
  5. Pre-1.0 compatibility, parser notes and unsupported math constructs matter.
  6. Old quoin/math package superseded; namespace migration required.

What builders should take away

  1. Consider a proof of concept for PHP-only email, educational and document workflows rather than replacing an existing renderer indiscriminately.
  2. Pin dependencies and verify representative equations, conversion fidelity, accessibility and Word integration.
  3. Cap input and generated output; handle dropped or approximated notation explicitly.
  4. Compare actual memory and render latency against your existing pipeline.

What changed

Phactorial's November 19, 2026 Composer releases under its new package name continue the former quoin/math project. The current Packagist listing shows core 0.21.0, published November 19, and December 2 specialist coverage highlights its use in PHP applications. It accepts TeX math and MathML and renders SVG paths, MathML, TeX, plain text, editable Office Math markup and optional PNG. The separate CommonMark extension is also listed at 0.21.0. This is a newly surfaced package, not a December 2 release.

Why it matters

Small teams running PHP education sites, scientific publishing or document workflows can avoid deploying a Node renderer or headless browser just to generate formulas. Rendering from a common representation reduces duplicate conversion code for email and Word exports. The benefit is strongest where browser-only rendering is inadequate; it is not a reason to replace working client-side math everywhere.

A Composer-native rendering pipeline

The core package is MIT licensed and requires PHP 8.4-compatible runtime plus ctype, DOM and mbstring. The bundled STIX Two Math font is separately OFL 1.1 licensed. It emits vector paths for SVG, avoiding a client font download. PNG requires Imagick, so not every output is free of native dependencies. A separate CommonMark extension renders Markdown math to SVG or MathML.

One formula, several destinations

The parser and layout are shared across writers. Web publishers can generate SVG or semantic MathML; email can use PNG, while Word exporters can insert OMML into correctly namespaced document XML. OMML is equation markup, not a complete DOCX generator. Plain-text labels are useful for accessibility but do not substitute for screen-reader testing. The project accepts a subset of chemistry notation.

Compatibility and migration

The old quoin/math listing directs users to phactorial/phactorial starting with the 0.18 series and a namespace change. The stability policy explicitly permits breaking changes before 1.0. Pin and test the installed version. Unsupported or approximated constructs include equation numbering, boxes and some chemistry and layout features. This is not a full LaTeX document engine.

Untrusted input still needs operational limits

The documentation describes parser limits including 16 KiB TeX input and 256 levels of nesting, plus separate MathML caps. Unsupported and truncated constructs produce notes rather than necessarily aborting rendering. Even bounded SVG output can reach megabytes. Apply application-side input and output caps, request budgets and fixture tests; inspect dropped or approximated notes before treating results as accurate. No independent security audit was verified.

Cost and speed

The library has no licence fee under MIT; hosting and optional image processing costs remain. Maintainer documentation reports around 0.1 ms per warm formula and 15 ms for the first formula in a new process without opcache. These are project-reported timings, not independently reproduced or a universal capacity estimate. Benchmark representative input in the actual PHP worker environment.

What to watch next

  • A stable 1.0 API and additional formula coverage.
  • Independent correctness, accessibility and security testing.
  • Real-world integration experience and package maintenance cadence.

Still unclear

  • No package installation, runtime benchmark or security audit performed.
  • Core repository and release page could not be opened directly; version confirmed from current Packagist metadata.
  • Current documentation may differ from a pinned release.
  • No verified adoption scale or production reliability evidence.

Sources

Direct reading behind this dossier.

9 sources
Core Composer package
Packagist primary registry

Latest listed 0.21.0, dependencies, licence, release timestamp.

Project repository
One Learning Community primary repository

Project scope and MIT licence.

Phactorial overview
One Learning Community primary documentation

Output formats, comparison and maintainer timing claims.

Recipes
One Learning Community primary documentation

Word integration and input/output limit caveats.

Input documentation
One Learning Community primary documentation

Supported subsets and parser bounds.

Stability policy
One Learning Community primary documentation

Pre-1.0 API contract and approximation notes.

Former package
Packagist primary registry

Package and namespace migration.

CommonMark extension
Packagist primary registry

0.21.0 release and dependency constraints.

Discussion

Discussion is reader-contributed. Comments are not part of the BTN dossier or its editorial evidence.

0 visible comments

Join the discussion

Keep comments useful and relevant. Reader contributions may be moderated and are not BTN editorial evidence.

Sign in to comment