User-facing documentation for the MathPHP core library and its optional extensions.
For maintainers, RELEASING.md defines the package tag order, validation gates, and production verification checklist.
This repository is intentionally separate from the implementation and the normative specification. Use the feature guides below for focused examples, then consult REFERENCE.md for the complete reference.
- Getting started
- Grammar and precedence
- Functions and variables
- Errors and source spans
- Resource limits
- PHP API and integration
- Explaining: step-by-step evaluation
- Explaining: translations and observers
- Visuals: plots and sampling
- Visuals: equations, matrices, and calculus
- Explaining: equations
- Explaining: linear systems
- Explaining: matrices
- Explaining: calculus
- Explaining: areas
- Explaining: roots
- Explaining: statistics
- Visuals: rendering pipeline
- Units: quantities and dimensional arithmetic
For a first integration, follow Getting started → Grammar → Errors → PHP API. For an educational product, add Explaining steps → translations → analyzers. For a charting product, add Visuals plots → rendering → analysis models. For measurement-aware products, add the Units guide before the explaining or visual layer.
The website playground exposes the same API shapes as these guides and is useful for checking examples before writing application code.
Documentation CI checks every relative Markdown link without requiring network access; external links remain informational and are not treated as release gates.
- Website: https://mathphp.diderichsen.com
- Specs: https://github.com/mathphp/mathphp-specs
- Private explaining add-on: https://github.com/mathphp/mathphp-explaining
- Private visuals add-on: https://github.com/mathphp/mathphp-visuals
- Private units add-on: https://github.com/mathphp/mathphp-units