Download the PHP package mathematicator-core/calculator without Composer
On this page you can find all versions of the php package mathematicator-core/calculator. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download mathematicator-core/calculator
More information about mathematicator-core/calculator
Files in mathematicator-core/calculator
Package calculator
Short Description Advance PHP math calculator with complex operations.
License MIT
Homepage https://github.com/mathematicator-core/calculator
Informations about the package calculator
Advance PHP Calculator
Simple to use modular calculator with steps to solution and result explanation.
It is highly recommended to make sure you have enabled BCMath or GMP extension on your PHP server for much faster calculations.
Installation
Idea
Imagine you want compute some math problem, for instance:
How to compute it? Very simply:
Method calculateString()
returns entity CalculatorResult
that implements __toString()
method.
Advance use is by an array of tokens created by Tokenizer
:
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 | Modular search engine layer that calls its sublayers and creates user interface. |
Vizualizator |
Elegant graphic visualizer that can render to
SVG, PNG, JPG and Base64. Extensions: Mandelbrot set generator |
Calculator |
Modular advance calculations layer.
Extensions: Integral Solver , Statistics |
Engine | Core logic layer that maintains basic controllers, DAOs, translator, common exceptions, routing etc. |
Tokenizer | Tokenizer that can convert string (user input / LaTeX) to numbers and operators. |
Numbers | Fast & secure storage for numbers with arbitrary precision. It supports Human string and LaTeX output and basic conversions. |
Third-party packages:
⚠️ Not guaranteed!
REST API | Install the whole pack as a REST API service on your server (Docker ready) or access it via public cloud REST API. |
Contribution
Please help improve this documentation by sending a Pull request.
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. You can run tests via command: `
Before PR, please run complete code check via command: `
All versions of calculator with dependencies
brick/math Version ^0.8.15 || ^0.9.0
mathematicator-core/engine Version ^2.0 || ^3.0
mathematicator-core/numbers Version ^2.1
mathematicator-core/tokenizer Version ^2.1 || ^3.0
baraja-core/url Version ^1.1
nette/application Version ^3.0
nette/utils Version ^3.0
nette/di Version ^3.0
nette/caching Version ^3.0
symfony/polyfill-php80 Version ^1.17