Private extension

Show the calculation.
mathphp-visuals

A private extension that keeps visual output structured first, with accessible SVG and image-ready fallbacks when a frontend renderer is not available.

mathphp-visuals

Designed to load separately.

Keep mathphp/mathphp small and stable. This package adds its own contracts, translations, and presentation models without changing the public evaluator.

  • Line plots, areas, roots, and histograms
  • Equation, matrix, system, and calculus models
  • Renderer-neutral data for your own frontend
  • Accessible SVG and image-ready data URIs
Read integration notes ↗
Plot modelsin(x)
128 samplesSVG fallback0 → 6.28 domain
// keep data and presentation separate
$plot = (new Plotter())->plot('sin(x)', 'x', 0, 6.28);

Install from an approved source

These repositories are private and may be consumed through your organization’s Composer mirror or VCS access. Pin a tag or commit for production.

# add the approved private VCS source
composer config repositories.mathphp-visuals vcs https://github.com/mathphp/mathphp-visuals.git
composer require mathphp/mathphp-visuals:^0.1
Distribution placeholder.Private repositories and commercial terms are intentionally not automated yet; the delivery model will be chosen separately.
What it adds
01

Data before pixels

Get samples, domains, labels, and metadata as plain models before choosing SVG, Canvas, or a chart library.

02

More than plots

Use the same contracts for matrices, equations, systems, calculus, roots, areas, and statistical summaries.

03

Accessible fallback

Render a useful SVG or image-ready data URI when a full frontend renderer is unavailable.

How it fits

One core call.
One richer response.

01EvaluateCore parses and validates the expression.
02EnrichVisuals turns the result into portable models.
03PresentYour application chooses the UI, language, and renderer.
Feature guides