PHPackages                             mathematicator-core/vizualizator - 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. [Image &amp; Media](/categories/media)
4. /
5. mathematicator-core/vizualizator

ActiveLibrary[Image &amp; Media](/categories/media)

mathematicator-core/vizualizator
================================

Core logic for elegant graphic visualization. Render to SVG, PNG, JPG and Base64.

v3.0.0(5y ago)53.3k1[4 PRs](https://github.com/mathematicator-core/vizualizator/pulls)2MITPHPPHP ^8.0

Since Sep 6Pushed 1y ago1 watchersCompare

[ Source](https://github.com/mathematicator-core/vizualizator)[ Packagist](https://packagist.org/packages/mathematicator-core/vizualizator)[ Docs](https://github.com/mathematicator-core/vizualizator)[ RSS](/packages/mathematicator-core-vizualizator/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (7)Dependencies (12)Versions (13)Used By (2)

Vizualizator
============

[](#vizualizator)

[![Integrity check](https://github.com/mathematicator-core/vizualizator/workflows/Integrity%20check/badge.svg)](https://github.com/mathematicator-core/vizualizator/actions?query=workflow%3A%22Integrity+check%22)[![codecov](https://camo.githubusercontent.com/731b201b30bf1844414be328c6fd03326cd6302362f6ca7c95af5dd90eafd210/68747470733a2f2f636f6465636f762e696f2f67682f6d617468656d6174696361746f722d636f72652f76697a75616c697a61746f722f6272616e63682f6d61737465722f67726170682f62616467652e737667)](https://codecov.io/gh/mathematicator-core/vizualizator)[![Latest Stable Version](https://camo.githubusercontent.com/ce6d464063ca6a4948f6032c176e367a4644ee3af45bc5f4620d0c6196cd269b/68747470733a2f2f706f7365722e707567782e6f72672f6d617468656d6174696361746f722d636f72652f76697a75616c697a61746f722f762f737461626c65)](https://packagist.org/packages/mathematicator-core/vizualizator)[![Latest Unstable Version](https://camo.githubusercontent.com/794f8d0a8ae6400f57294411d6a9797de83321197b8888e649c6915ac11950f1/68747470733a2f2f706f7365722e707567782e6f72672f6d617468656d6174696361746f722d636f72652f76697a75616c697a61746f722f762f756e737461626c65)](https://packagist.org/packages/mathematicator-core/vizualizator)[![License: MIT](https://camo.githubusercontent.com/1a2e0606685ce00663bf829868f794fd3fc9c86f8d80cae324734129e0723a58/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4c6963656e73652d4d49542d627269676874677265656e2e737667)](./LICENSE)[![PHPStan Enabled](https://camo.githubusercontent.com/9142f3d2ec7588a75127608ff41f595540402524559c6f50feb756df4b8cf6c5/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5048505374616e2d656e61626c65642532304c382d627269676874677265656e2e7376673f7374796c653d666c6174)](https://phpstan.org/)

Smart engine for creating elegant images and graphic visualizations.

Render to SVG, PNG and JPG. All output is in base64 format valid in HTML document.

Installation
------------

[](#installation)

```
composer require mathematicator-core/vizualizator
```

Usage
-----

[](#usage)

Imagine you can render all your images by simple objective request.

First inject `Renderer` to your script and create request:

```
$renderer = new Renderer;
$request = $renderer->createRequest();
```

Now you can add some lines and more:

```
$request->addLine(10, 10, 35, 70);
$request->addLine(35, 70, 70, 35);
```

And render to page (output is valid HTML code, `base64` or `svg` tag):

```
// Render specific format:

echo $request->render(Renderer::FORMAT_PNG);
echo $request->render(Renderer::FORMAT_JPG);
echo $request->render(Renderer::FORMAT_SVG);

// Or use default renderer and __toString() method

echp $request;
```

Full simple short example
-------------------------

[](#full-simple-short-example)

This example use short fluid-syntax. Final image size is `200x100`:

```
echo (new Renderer)->createRequest(200, 100)
    ->addLine(10, 10, 35, 70, '#aaa')
    ->addLine(35, 70, 70, 35, 'red');
```

Mathematicator Framework tools structure
----------------------------------------

[](#mathematicator-framework-tools-structure)

The biggest advantage is that you can choose which layer best fits your needs and start build on the top of it, immediately, without the need to create everything by yourself. Our tools are tested for bugs and tuned for performance, so you can save a significant amount of your time, money, and effort.

Framework tend to be modular as much as possible, so you should be able to create an extension on each layer and its sublayers.

**Mathematicator framework layers** ordered from the most concrete one to the most abstract one:

    **[ Search ](https://github.com/mathematicator-core/search)**    Modular search engine layer that calls its sublayers and creates user interface.      **[ Vizualizator ](https://github.com/mathematicator-core/vizualizator)**    Elegant graphic visualizer that can render to SVG, PNG, JPG and Base64.
 Extensions:  **[ Mandelbrot set generator ](https://github.com/mathematicator-core/mandelbrot-set)**       **[ Calculator ](https://github.com/mathematicator-core/calculator)**    Modular advance calculations layer.
 Extensions:  **[ Integral Solver ](https://github.com/mathematicator-core/integral-solver), [ Statistics ](https://github.com/mathematicator-core/statistic)**       **[ Engine ](https://github.com/mathematicator-core/engine)**    Core logic layer that maintains basic controllers, DAOs, translator, common exceptions, routing etc.      **[ Tokenizer ](https://github.com/mathematicator-core/tokenizer)**    Tokenizer that can convert string (user input / LaTeX) to numbers and operators.      **[ Numbers ](https://github.com/mathematicator-core/numbers)**    Fast &amp; secure storage for numbers with arbitrary precision. It supports Human string and LaTeX output and basic conversions.  **Third-party packages:**

⚠️ Not guaranteed!

    **[ REST API ](https://github.com/cothema/math-php-api)**    Install the whole pack as a REST API service on your server (Docker ready) or access it via public cloud REST API.  Contribution
------------

[](#contribution)

### Tests

[](#tests)

All new contributions should have its unit tests in `/tests` directory.

Before you send a PR, please, check all tests pass.

This package uses [Nette Tester](https://tester.nette.org/). You can run tests via command:

```
composer test
```

Before PR, please run complete code check via command:

```
composer cs:install # only first time
composer fix # otherwise pre-commit hook can fail
```

###  Health Score

38

—

LowBetter than 85% of packages

Maintenance27

Infrequent updates — may be unmaintained

Popularity25

Limited adoption so far

Community15

Small or concentrated contributor base

Maturity70

Established project with proven stability

 Bus Factor1

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

Every ~87 days

Recently: every ~117 days

Total

7

Last Release

1915d ago

Major Versions

v1.0.3 → v2.0.02020-04-14

v2.0.2 → v3.0.02021-02-11

PHP version history (3 changes)v1.0.1PHP &gt;=7.1

v2.0.1PHP &gt;=7.2

v3.0.0PHP ^8.0

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/3382204?v=4)[baraja](/maintainers/baraja)[@baraja](https://github.com/baraja)

---

Top Contributors

[![janbarasek](https://avatars.githubusercontent.com/u/4738758?v=4)](https://github.com/janbarasek "janbarasek (28 commits)")[![flokixdev](https://avatars.githubusercontent.com/u/2387790?v=4)](https://github.com/flokixdev "flokixdev (5 commits)")[![dependabot-preview[bot]](https://avatars.githubusercontent.com/in/2141?v=4)](https://github.com/dependabot-preview[bot] "dependabot-preview[bot] (2 commits)")

---

Tags

graphic-visualizationsjpgmathpngrenderer-backendsvgphpmathmathematicatorvizualizator

###  Code Quality

Static AnalysisPHPStan

Type Coverage Yes

### Embed Badge

![Health badge](/badges/mathematicator-core-vizualizator/health.svg)

```
[![Health](https://phpackages.com/badges/mathematicator-core-vizualizator/health.svg)](https://phpackages.com/packages/mathematicator-core-vizualizator)
```

###  Alternatives

[dereuromark/media-embed

A PHP library to deal with all those media services around, parsing their URLs and embedding their audio/video content in websites.

182530.3k11](/packages/dereuromark-media-embed)[jkphl/iconizr

A PHP command line tool for converting SVG images to a set of CSS icons (SVG &amp; PNG, single icons and / or CSS sprites) with support for image optimization and Sass output

4869.0k](/packages/jkphl-iconizr)[tomatophp/filament-media-manager

Manage your media files using spatie media library with easy to use GUI for FilamentPHP

14543.9k3](/packages/tomatophp-filament-media-manager)[mathematicator-core/tokenizer

Math Tokenizer

104.9k6](/packages/mathematicator-core-tokenizer)[nikkanetiya/laravel-color-palette

Laravel Wrapper for `ksubileau/color-thief-php`. Grabs the dominant color or a representative color palette from an image. Uses PHP and GD or Imagick.

3312.6k](/packages/nikkanetiya-laravel-color-palette)[kiwilan/php-audio

PHP package to parse and update audio files metadata, with `JamesHeinrich/getID3`.

3012.6k1](/packages/kiwilan-php-audio)

PHPackages © 2026

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