PHPackages                             tazorax/math-utils - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. tazorax/math-utils

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

tazorax/math-utils
==================

Mathematical objects in a PHP library

v0.0.7-alpha(6y ago)0194MITPHPPHP &gt;=7.0CI failing

Since Jan 6Pushed 3y ago1 watchersCompare

[ Source](https://github.com/tazorax/math-utils)[ Packagist](https://packagist.org/packages/tazorax/math-utils)[ Docs](http://tazorax.github.io/math-utils/)[ RSS](/packages/tazorax-math-utils/feed)WikiDiscussions master Synced yesterday

READMEChangelog (5)Dependencies (3)Versions (9)Used By (0)

math-utils
==========

[](#math-utils)

[![Build Status](https://camo.githubusercontent.com/c6d72a91c055eeacca4adcacb2dceb05ca0b5680546d5f0c4df49247480018e8/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f74617a6f7261782f6d6174682d7574696c732f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/tazorax/math-utils)[![Coverage Status](https://camo.githubusercontent.com/5ed957b6d5a1c538585a99716117b90ae0fb0e80484008676f8c6bab71c6db0d/68747470733a2f2f696d672e736869656c64732e696f2f636f766572616c6c732f74617a6f7261782f6d6174682d7574696c732f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://coveralls.io/github/tazorax/math-utils?branch=master)[![SensioLabs Insight](https://camo.githubusercontent.com/06b32151ecdeb225838ae433bb8fe4d2b447242e251c5efafb9b06ca76c74c3d/68747470733a2f2f696d672e736869656c64732e696f2f73656e73696f6c6162732f692f65633932326137332d326661392d346534332d623539612d3838316166633131306237332e7376673f7374796c653d666c61742d737175617265)](https://insight.sensiolabs.com/projects/ec922a73-2fa9-4e43-b59a-881afc110b73)[![Dependency Status](https://camo.githubusercontent.com/7d49cc4ca730e3ef7efc4ad3c168fd68753c34568cfd9a336d24e32f10081000/68747470733a2f2f696d672e736869656c64732e696f2f76657273696f6e6579652f642f7068702f74617a6f7261783a6d6174682d7574696c732f6465762d6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://www.versioneye.com/php/tazorax:math-utils/dev-master)[![GitHub license](https://camo.githubusercontent.com/91e8a9946ebc74cbdcd7878209b77c4cf36353599f42c21d60c66f3c456f9d77/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f74617a6f7261782f6d6174682d7574696c732e7376673f7374796c653d666c61742d737175617265)](https://github.com/tazorax/math-utils/blob/master/LICENSE)

This library provide mathematical objects for PHP 7.0+

Content
-------

[](#content)

### 2D (WIP)

[](#2d-wip)

- Point2d
- Polygon
- Rectangle
- Triangle
- Vector2d

### 3D (WIP)

[](#3d-wip)

- Point3d
- Vector3d
- Matrix3d

### Arithmetic

[](#arithmetic)

- Fraction
- FractionCollection
- Utils

Install
-------

[](#install)

Using composer

`composer require tazorax/math-utils`

Documentation
-------------

[](#documentation)

For more detailed information you can check our online documentation at

###  Health Score

24

—

LowBetter than 31% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity49

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 98.3% 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 ~265 days

Recently: every ~319 days

Total

7

Last Release

2240d ago

PHP version history (2 changes)v0.0.1-alphaPHP &gt;=5.4.0

v0.0.5-alphaPHP &gt;=7.0

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/1062894?v=4)[Mathieu Cabaret](/maintainers/tazorax)[@tazorax](https://github.com/tazorax)

---

Top Contributors

[![tazorax](https://avatars.githubusercontent.com/u/1062894?v=4)](https://github.com/tazorax "tazorax (59 commits)")[![renovate[bot]](https://avatars.githubusercontent.com/in/2740?v=4)](https://github.com/renovate[bot] "renovate[bot] (1 commits)")

---

Tags

mathematical-objectsphpwip

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/tazorax-math-utils/health.svg)

```
[![Health](https://phpackages.com/badges/tazorax-math-utils/health.svg)](https://phpackages.com/packages/tazorax-math-utils)
```

###  Alternatives

[geniusts/laravel-hijri-dates

Hijri dates package for Laravel

2722.8k](/packages/geniusts-laravel-hijri-dates)[sabre/amf

SabreAMF is a Flash Remoting server and client for PHP

416.2k1](/packages/sabre-amf)

PHPackages © 2026

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