PHPackages                             zkyg/spreadsheet-formula-laravel - 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. [Parsing &amp; Serialization](/categories/parsing)
4. /
5. zkyg/spreadsheet-formula-laravel

ActiveLibrary[Parsing &amp; Serialization](/categories/parsing)

zkyg/spreadsheet-formula-laravel
================================

Parsing and calculate simple Ms Excel formula using PHP(through PHPSpreadsheet) for Laravel

v1.0.3(4y ago)1141MITPHP

Since Aug 6Pushed 4y ago1 watchersCompare

[ Source](https://github.com/zkyg/spreadsheet-formula-excel)[ Packagist](https://packagist.org/packages/zkyg/spreadsheet-formula-laravel)[ RSS](/packages/zkyg-spreadsheet-formula-laravel/feed)WikiDiscussions main Synced yesterday

READMEChangelogDependencies (1)Versions (5)Used By (0)

spreadsheet-formula-excel
=========================

[](#spreadsheet-formula-excel)

Library to parse and execute simple spreadsheet formula inside Laravel project. Basically it's using PhpSpreadsheet to simulate and get the formula result.

- Install

```
composer require zkyg/spreadsheet-formula-laravel

```

- How to use

```
$formula = "=IF( [[value1]] < 5, \"ok\", [[value1]] + [[value2]] )";
$values = [
    'value1' => 7,
    'value2' => 3
];
$res = \zkyg\SpreadsheetFormulaLaravel\SpreadsheetFormulaParser::getInstance()->calculate(
    $formula,
    $values
);
// $res = 10

```

- Rules:

```
- Parameter count have to be equals in both formula & value list.
- Value index name is alphanumeric and cannot begin with number.
- Function segment separated with "," not ";"

```

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity54

Maturing project, gaining track record

 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 ~0 days

Total

4

Last Release

1741d ago

### Community

Maintainers

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

---

Top Contributors

[![zkyg](https://avatars.githubusercontent.com/u/16677820?v=4)](https://github.com/zkyg "zkyg (4 commits)")

### Embed Badge

![Health badge](/badges/zkyg-spreadsheet-formula-laravel/health.svg)

```
[![Health](https://phpackages.com/badges/zkyg-spreadsheet-formula-laravel/health.svg)](https://phpackages.com/packages/zkyg-spreadsheet-formula-laravel)
```

###  Alternatives

[mtdowling/jmespath.php

Declaratively specify how to extract elements from a JSON document

2.0k472.8M135](/packages/mtdowling-jmespathphp)[masterminds/html5

An HTML5 parser and serializer.

1.8k242.8M229](/packages/masterminds-html5)[sabberworm/php-css-parser

Parser for CSS Files written in PHP

1.8k191.2M65](/packages/sabberworm-php-css-parser)[jms/metadata

Class/method/property metadata management in PHP

1.8k152.8M88](/packages/jms-metadata)[mck89/peast

Peast is PHP library that generates AST for JavaScript code

18834.7M29](/packages/mck89-peast)[ivopetkov/html5-dom-document-php

HTML5 DOMDocument PHP library (extends DOMDocument)

6031.4M49](/packages/ivopetkov-html5-dom-document-php)

PHPackages © 2026

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