Download the PHP package mathematicator-core/numbers without Composer

On this page you can find all versions of the php package mathematicator-core/numbers. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package numbers

Smart PHP Number Utilities

Integrity check codecov Latest Stable Version Latest Unstable Version PHPStan Enabled

A PHP library to safely store and represent numbers and its equivalents in PHP.

Store lots of number types exactly (integers, decimals, fractions) and convert them to each other. Expressions can be outputted as a human string (e.g. 1/2) or LaTeX (e.g. \frac{1}{2}).

It is highly recommended to make sure you have enabled BCMath or GMP extension on your PHP server for much faster calculations.

Installation

Features

💡 TIP: You can use mathematicator-core/tokenizer for advance user input string tokenization or mathematicator-core/calculator for advance calculations.

Usage

Recommended libraries

For safe operations with arbitrary length numbers we recommend to use:

Working with money

Use one of these libraries if you work with money in your application.

Why float is not safe?

Float stores your number as an approximation with limited precision.

You should never trust float to the last digit. Do not use floats directly for checking equity if you rely on precision (not only monetary calculations).

Example:

How is float stored in memory?

See in PHP manual

Read more about float on Wikipedia

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 to 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: `

For benchmarking, we use phpbench. You can run benchmarks this way: `

Before PR, please run complete code check via command: `


All versions of numbers with dependencies

PHP Build Version
Package Version
Requires php Version >=7.2
ext-json Version *
nette/utils Version ^3.0
brick/math Version ^0.8.15 || ^0.9.0
symfony/polyfill-php80 Version ^1.17
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package mathematicator-core/numbers contains the following files

Loading the files please wait ....