# MarkBaker/PHPComplex

PHP Class for handling Complex numbers

Repository: https://github.com/MarkBaker/PHPComplex
Canonical: https://ross.abutalabs.com/products/phpcomplex
Language: PHP
License: MIT
License Family: permissive
Last push: 2022-12-06T16:29:17+00:00

## Health v2 (maintenance only)
Score: 23/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 0, release rhythm 8, longevity 100
- inputs: {"age_days": 4927, "days_push": 1366, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1663, forks 12 (observed 2026-08-28T04:05:18.881173+00:00)

## What it is
A PHP library providing a Complex number class with arithmetic operations and a wide range of mathematical functions such as trigonometric, hyperbolic, exponential, and logarithmic operations. It is installed via Composer and supports creating complex numbers from values or strings.

## Use cases
- perform arithmetic on complex numbers in php
- compute trigonometric functions of complex numbers
- convert complex numbers to polar form
- calculate square roots and logarithms of complex numbers
- parse complex number strings in php

## When to choose
- you need complex number math in a PHP project
- you want a small, focused, MIT-licensed math library
- you need polar/conjugate/inverse operations plus full trig and hyperbolic function coverage

## When to avoid
- you need procedural function-style calls (use markbaker/complex-functions instead)
- you work outside PHP
- you need arbitrary-precision or symbolic complex arithmetic

## Facets
- artifact type: library
- maturity: maintenance
- function: math
- domain: mathematics, developer-tools
- platform: php
- tags: complex-numbers, arithmetic, trigonometry, composer-package

## Member repositories
- MarkBaker/PHPComplex (main) score 23

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:05:18.881173+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T03:44:30.899499+00:00, confidence not recorded.
  - readme: https://github.com/MarkBaker/PHPComplex (fetched 2026-08-28T04:05:18.881173+00:00, sha 08fe6613b608)
- Data as of 2026-08-30T08:39:29.467469+00:00.
