PHPackages                             smoren/formula-tools - 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. smoren/formula-tools

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

smoren/formula-tools
====================

Formula tools

v0.2.1(3y ago)6194[1 PRs](https://github.com/Smoren/formula-tools-php/pulls)MITPHPPHP &gt;=7.4

Since Feb 7Pushed 1y ago1 watchersCompare

[ Source](https://github.com/Smoren/formula-tools-php)[ Packagist](https://packagist.org/packages/smoren/formula-tools)[ RSS](/packages/smoren-formula-tools/feed)WikiDiscussions master Synced 1mo ago

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

PHP Formula Tools
=================

[](#php-formula-tools)

[![Packagist PHP Version Support](https://camo.githubusercontent.com/e8b2afd7242c4b090478cb9f55ee3151f1715c68536a1dff462534a742eb1f56/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f736d6f72656e2f666f726d756c612d746f6f6c73)](https://camo.githubusercontent.com/e8b2afd7242c4b090478cb9f55ee3151f1715c68536a1dff462534a742eb1f56/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f736d6f72656e2f666f726d756c612d746f6f6c73)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/438e47ef245ab2aea78263b69d0ef3e961ef92ceafb97aa7f01c56efb920391d/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f536d6f72656e2f666f726d756c612d746f6f6c732d7068702f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/Smoren/formula-tools-php/?branch=master)[![Coverage Status](https://camo.githubusercontent.com/ed8c479eb2e71cf9bed74f2a031cc5290fb39175924580301301080c891d391f/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f6769746875622f536d6f72656e2f666f726d756c612d746f6f6c732d7068702f62616467652e7376673f6272616e63683d6d6173746572)](https://coveralls.io/github/Smoren/formula-tools-php?branch=master)[![Build and test](https://github.com/Smoren/formula-tools-php/actions/workflows/test_master.yml/badge.svg)](https://github.com/Smoren/formula-tools-php/actions/workflows/test_master.yml/badge.svg)[![License: MIT](https://camo.githubusercontent.com/fdf2982b9f5d7489dcf44570e714e3a15fce6253e0cc6b5aa61a075aac2ff71b/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4c6963656e73652d4d49542d79656c6c6f772e737667)](https://opensource.org/licenses/MIT)

How to install to your project
------------------------------

[](#how-to-install-to-your-project)

```
composer require smoren/formula-tools

```

Unit testing
------------

[](#unit-testing)

```
composer install
composer test-init
composer test

```

Standards
---------

[](#standards)

PHP Formula Tools conforms to the following standards:

- PSR-1 — [Basic coding standard](https://www.php-fig.org/psr/psr-1/)
- PSR-4 — [Autoloader](https://www.php-fig.org/psr/psr-4/)
- PSR-12 — [Extended coding style guide](https://www.php-fig.org/psr/psr-12/)

License
-------

[](#license)

PHP Formula Tools is licensed under the MIT License.

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance31

Infrequent updates — may be unmaintained

Popularity14

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity37

Early-stage or recently created project

 Bus Factor1

Top contributor holds 90.9% 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 ~0 days

Total

3

Last Release

1194d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/fdc9e8df44cbbc0fc88885a4f1daa2cad755266e73eb0bac15efaf0d47ecbae2?d=identicon)[smoren](/maintainers/smoren)

---

Top Contributors

[![Smoren](https://avatars.githubusercontent.com/u/7403235?v=4)](https://github.com/Smoren "Smoren (10 commits)")[![peter279k](https://avatars.githubusercontent.com/u/9021747?v=4)](https://github.com/peter279k "peter279k (1 commits)")

---

Tags

formulamath-logicphpphp-librarylogicformulaoperatoroperand

###  Code Quality

TestsCodeception

Static AnalysisPHPStan

Code StylePHP\_CodeSniffer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/smoren-formula-tools/health.svg)

```
[![Health](https://phpackages.com/badges/smoren-formula-tools/health.svg)](https://phpackages.com/packages/smoren-formula-tools)
```

###  Alternatives

[sebastiaanluca/php-pipe-operator

Method chaining (or fluent expressions) for any value using any method.

288467.7k2](/packages/sebastiaanluca-php-pipe-operator)[unclecheese/display-logic

Allows assignment of conditions for display and hide of specific form fields based on client side behavior.

771.0M101](/packages/unclecheese-display-logic)[rezzza/formulate

Making life easier while writing complex math formulas, take a breath

1235.3k1](/packages/rezzza-formulate)

PHPackages © 2026

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