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.