PHPackages                             sobhanmohammadi/cas - 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. [Authentication &amp; Authorization](/categories/authentication)
4. /
5. sobhanmohammadi/cas

ActiveLibrary[Authentication &amp; Authorization](/categories/authentication)

sobhanmohammadi/cas
===================

A lightweight CAS library with step-by-step human explanations and zero external dependencies.

v2.0.2(1w ago)017MITPHPPHP &gt;=7.4

Since May 17Pushed 3w agoCompare

[ Source](https://github.com/sobhanmohammadi-dev/cas)[ Packagist](https://packagist.org/packages/sobhanmohammadi/cas)[ RSS](/packages/sobhanmohammadi-cas/feed)WikiDiscussions master Synced 1w ago

READMEChangelogDependenciesVersions (7)Used By (0)

CAS – A Lightweight Computer Algebra System for PHP
===================================================

[](#cas--a-lightweight-computer-algebra-system-for-php)

**A lightweight, zero-dependency Computer Algebra System (CAS) library for PHP with step-by-step human-readable explanations.**

[![Latest Version](https://camo.githubusercontent.com/47ae4a3a01c54e8acf5856d80fb01273e576689c6180a29404cefa4a623adca8/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f736f6268616e6d6f68616d6d6164692f636173)](https://packagist.org/packages/sobhanmohammadi/cas)[![Required PHP Version](https://camo.githubusercontent.com/691ae72f00daee377edb5505c43cc34ad82473ac4f520d331436adfc78e67726/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f736f6268616e6d6f68616d6d6164692f636173)](https://packagist.org/packages/sobhanmohammadi/cas)[![License](https://camo.githubusercontent.com/21f86afea14ec9103b9199c098b7254ed43488ae1f2536ef29ceb8957a0afa7c/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f736f6268616e6d6f68616d6d6164692f636173)](LICENSE)[![Total Downloads](https://camo.githubusercontent.com/51d7439d77ad8480b4a31eaaf055a6d725c3ed709b6efba81a3153133128ee85/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f736f6268616e6d6f68616d6d6164692f636173)](https://packagist.org/packages/sobhanmohammadi/cas)

---

📖 About
-------

[](#-about)

**CAS** is a Computer Algebra System written entirely in PHP. Unlike numerical calculators that work with floating-point approximations, this library manipulates mathematical expressions **symbolically** — just like a human would when solving algebra problems by hand.

The killer feature? **It explains every single step in plain, human-readable text** (Persian &amp; English). Whether you're building an educational platform, a math tutor bot, or simply need exact symbolic computation in your PHP application, this library has you covered — with absolutely **zero external dependencies**.

---

✨ Key Features
--------------

[](#-key-features)

CategoryDetails**🔤 Symbolic Computation**Exact arithmetic on integers, rationals, and complex numbers — no floating-point errors**📊 Algebraic Simplification**Fully recursive simplification engine with convergence detection**🧩 Equation Solving**Symbolic &amp; numeric solvers (currently linear; higher-order planned)**📝 Step-by-Step Explanations**Every operation is recorded and explained in Persian &amp; English**🌳 AST-Based Architecture**All expressions are parsed into a tree structure for easy manipulation**🔢 Rich Numeric Support**Integers (GMP), Rationals, Complex numbers, π**🪶 Zero Dependencies**Pure PHP — only needs GMP extension (bundled with PHP by default)**📐 PSR-4 Compliant**Clean, modern namespace structure**⚡ Lightweight**Minimal overhead; designed for embedding in larger projects---

🚀 Installation
--------------

[](#-installation)

Install via Composer:

```
composer require sobhanmohammadi/cas
```

###  Health Score

39

—

LowBetter than 84% of packages

Maintenance96

Actively maintained with recent releases

Popularity8

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity38

Early-stage or recently created project

 Bus Factor1

Top contributor holds 100% 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 ~3 days

Total

6

Last Release

10d ago

Major Versions

v1.1.1 → v2.0.02026-05-30

### Community

Maintainers

![](https://www.gravatar.com/avatar/7e87e0310dfd6b9383486168b87122fb28cd8283adae26ddc290786408080cee?d=identicon)[sobhanmohammadi-dev](/maintainers/sobhanmohammadi-dev)

---

Top Contributors

[![sobhanmohammadi-dev](https://avatars.githubusercontent.com/u/200896399?v=4)](https://github.com/sobhanmohammadi-dev "sobhanmohammadi-dev (4 commits)")

### Embed Badge

![Health badge](/badges/sobhanmohammadi-cas/health.svg)

```
[![Health](https://phpackages.com/badges/sobhanmohammadi-cas/health.svg)](https://phpackages.com/packages/sobhanmohammadi-cas)
```

###  Alternatives

[kartik-v/yii2-password

Useful password strength validation utilities for Yii Framework 2.0

761.2M17](/packages/kartik-v-yii2-password)

PHPackages © 2026

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