PHPackages                             ftdebugger/jungle - 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. ftdebugger/jungle

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

ftdebugger/jungle
=================

PHP SRL parser generator

35PHP

Since Jul 8Pushed 12y ago2 watchersCompare

[ Source](https://github.com/ftdebugger/jungle)[ Packagist](https://packagist.org/packages/ftdebugger/jungle)[ RSS](/packages/ftdebugger-jungle/feed)WikiDiscussions master Synced 2mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

Jungle
======

[](#jungle)

Jungle - is a SLR parser generator, which written on php and for php

Usage
=====

[](#usage)

First of all, prepare `.jungle` file with your syntax. It's simillar to yaml file, but more simple

```
// jungle format not supported comments now,
// so this is fake comment

rules:
  global: // this is root rule, it specify what will be searching first of all
    - expression

  expression: // new line and char '-' tell about productions
    - component
    - expression + component {$$ = $1 + $3;} // { between braces php code }
    - expression - component {$$ = $1 - $3;} // '+' and '-' automaticly will be added to terminals as literal

  factor:
    - number { $$ = (float)$1; } // $1 means first token
    - ( expression ) { $$ = $2; } // $2 means the second, and $$ means return value

  component:
    - power
    - component * power {$$ = $1 * $3;}
    - component / power {$$ = $1 / $3;}

  power:
    - factor
    - power ^ factor {$$ = pow($1, $3);}

terminals:
  number: /^[0-9]+/ // /^I AM REGEXP/, if no /^/ specify - then it is string

```

when syntax file is ready, you can call

```
bin/jungle.php parse -o parser.php example/json/schema.jungle

```

###  Health Score

21

—

LowBetter than 19% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity41

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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/85fd7e537322d53678e041faf9e0aa89201aa392d40de4824a08edc78c493976?d=identicon)[ftdebugger](/maintainers/ftdebugger)

---

Top Contributors

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

### Embed Badge

![Health badge](/badges/ftdebugger-jungle/health.svg)

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

###  Alternatives

[mtdowling/jmespath.php

Declaratively specify how to extract elements from a JSON document

2.0k472.8M135](/packages/mtdowling-jmespathphp)[opis/closure

A library that can be used to serialize closures (anonymous functions) and arbitrary data.

2.6k230.0M284](/packages/opis-closure)[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)[michelf/php-markdown

PHP Markdown

3.5k52.4M345](/packages/michelf-php-markdown)[jms/metadata

Class/method/property metadata management in PHP

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

PHPackages © 2026

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