PHPackages                             contour/parser - 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. contour/parser

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

contour/parser
==============

0131PHP

Since Jul 21Pushed 8y ago2 watchersCompare

[ Source](https://github.com/BNJHope/php_parser)[ Packagist](https://packagist.org/packages/contour/parser)[ RSS](/packages/contour-parser/feed)WikiDiscussions master Synced 4w ago

READMEChangelogDependenciesVersions (3)Used By (0)

Contour Interpreter
===================

[](#contour-interpreter)

Introduction
------------

[](#introduction)

This is a interpreter for the Contour project. It parses a basic function syntax for spreadsheets so that operations on tags can be performed.

Language Examples
-----------------

[](#language-examples)

### Variable Declarations &amp; Assignments

[](#variable-declarations--assignments)

- Variables can be assigned with arithmetical/boolean operators and expressions and also tag expressions to link to other cells on other sheets.
- For an integer "num" with value 7:

```
  let num = 7

```

- For a string "name" with value "Alice":

```
 let name = "alice"

```

- For a variable "cellVal" that links to the spreadsheet cell referenced as #(row, col) + 7

```
let cellVal = #(row, col) + 7

```

### Conditional Statements :

[](#conditional-statements-)

- Multiline for clear understanding
- Can use boolean operators to link statements.
- If statements can nest
- For an if statement to see if the a string variable "name" is equal to "alice" and if so then set variable "correctName" to true and if not then set name to the value of cell (2, name) :

    ```
     if (name = "alice")
     then let correctName = true
     else then let name = #(2, name)

    ```
- Another example if statement. Notice how &amp; and 'and' can be used in the exact same way and will produce the same result. The return keyword returns the result of the function :

    ```
      if (name = "alice" & age = 22)
     then return 1
     else if (name = "bob" and age = 23)
     then return 2
     else then return 0

    ```

If there are any errors in the function code then it is output to the user, giving the type of error and the location of it also.

###  Health Score

22

—

LowBetter than 21% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity44

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 53.8% 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.

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/4037224?v=4)[Jason Gallavin](/maintainers/jasekiw)[@jasekiw](https://github.com/jasekiw)

---

Top Contributors

[![jasekiw](https://avatars.githubusercontent.com/u/4037224?v=4)](https://github.com/jasekiw "jasekiw (7 commits)")[![BNJHope](https://avatars.githubusercontent.com/u/8288551?v=4)](https://github.com/BNJHope "BNJHope (6 commits)")

### Embed Badge

![Health badge](/badges/contour-parser/health.svg)

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

###  Alternatives

[mck89/peast

Peast is PHP library that generates AST for JavaScript code

19037.7M42](/packages/mck89-peast)[sauladam/shipment-tracker

Parses tracking information for several carriers, like UPS, USPS, DHL and GLS by simply scraping the data. No need for any kind of API access.

9642.0k](/packages/sauladam-shipment-tracker)[moonshine/layouts-field

Field for repeating groups of fields for MoonShine

107.9k](/packages/moonshine-layouts-field)[tcds-io/php-jackson

A lightweight, flexible object serializer for PHP, inspired by FasterXML/jackson

112.9k10](/packages/tcds-io-php-jackson)

PHPackages © 2026

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