PHPackages                             fuel/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. [Utility &amp; Helpers](/categories/utility)
4. /
5. fuel/parser

ActiveFuel-package[Utility &amp; Helpers](/categories/utility)

fuel/parser
===========

FuelPHP 1.x Parser Package

1.8.2(6y ago)601.2M—1.2%46[2 issues](https://github.com/fuel/parser/issues)5MITPHP

Since May 20Pushed 4mo ago9 watchersCompare

[ Source](https://github.com/fuel/parser)[ Packagist](https://packagist.org/packages/fuel/parser)[ Docs](https://github.com/fuel/parser)[ RSS](/packages/fuel-parser/feed)WikiDiscussions 1.9/develop Synced 1mo ago

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

Parser package
==============

[](#parser-package)

Installing
----------

[](#installing)

Simply add `parser` to your config.php `always_loaded.packages` config option.

Included Parsers
----------------

[](#included-parsers)

- Markdown - A PHP version of Markdown by Michel Fortin.

Usage
-----

[](#usage)

```
// old usage still valid, will load app/views/example.php
View::forge('example');

// load a Mustache template, will load and parse app/views/example.mustache
View::forge('example.mustache');

// load a Twig template, will load and parse app/views/example.twig
View::forge('example.twig');

// load a Hybrid Haml / Twig template, ATTENTION: this one actually loads app/views/example.twig and {% haml %} code at the top of the view
View::forge('example.mthaml');

// load a Jade template, will load and parse app/views/example.jade
View::forge('example.jade');

// load a Plates template, will load and parse app/views/example.plates
View::forge('example.plates');

// load a Haml template, will load and parse app/views/example.haml
View::forge('example.haml');

// load a Smarty template, will load and parse app/views/example.smarty
View::forge('example.smarty');

// load a Lex template, will load and parse app/views/example.lex
View::forge('example.lex');

// load a Dwoo template, ATTENTION: this one actually loads app/views/example.tpl
View::forge('example.dwoo');

// load a Handlebars template, will load and parse app/views/example.handlebars
View::forge('example.handlebars');

// load a Plates template, ATTENTION: this one actually loads app/views/example.tpl
View::forge('example.plates');
```

Installing parsers
------------------

[](#installing-parsers)

To be able to use one of the supported parsers, you need to install them via composer. Simply add the libraries to your project's `composer.json` then run `php composer.phar install`:

```
{
    "require": {
        "dwoo/dwoo" : "*",
        "mustache/mustache" : "*",
        "smarty/smarty" : "*",
        "twig/twig" : "2.*",
        "mthaml/mthaml": "*",
        "pyrocms/lex": "*",
        "league/plates" : "3.*",
        "zordius/lightncandy" : "dev-master"
    }
}
```

Note that the Markdown parser is installed by default, as it is also used by the FuelPHP core class `Markdown`.

Libraries that can not be installed through composer are expected to be installed in in `APPPATH/vendor/lib_name` (capitalize lib\_name), and you'll have to download them yourself. Don't change the casing or anything, keep it as much original as possible within the `vendor/lib_name`dir to keep updating easy (also because some come with their own autoloader).

You can configure them to be loaded from other locations by copying the parser.php config file to your app and editing it.

Config and runtime config
-------------------------

[](#config-and-runtime-config)

Currently the drivers still lack a lot of config options they should probably accept. They are currently all configured to work with one instance of their parser library, which is available to config:

```
// Clear the cache for a specific Smarty template
$view = View::forge('example.smarty');
$view->parser()->clearCache('example.smarty');

// Example static usage
View_Smarty::parser()->clearCache('example.smarty');
```

###  Health Score

54

—

FairBetter than 97% of packages

Maintenance50

Moderate activity, may be stable

Popularity54

Moderate usage in the ecosystem

Community35

Small or concentrated contributor base

Maturity68

Established project with proven stability

 Bus Factor2

2 contributors hold 50%+ of commits

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

Total

4

Last Release

2517d ago

### Community

Maintainers

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

---

Top Contributors

[![WanWizard](https://avatars.githubusercontent.com/u/456954?v=4)](https://github.com/WanWizard "WanWizard (83 commits)")[![dhrrgn](https://avatars.githubusercontent.com/u/149921?v=4)](https://github.com/dhrrgn "dhrrgn (19 commits)")[![billmn](https://avatars.githubusercontent.com/u/779534?v=4)](https://github.com/billmn "billmn (18 commits)")[![frankdejonge](https://avatars.githubusercontent.com/u/534693?v=4)](https://github.com/frankdejonge "frankdejonge (10 commits)")[![evantishuk](https://avatars.githubusercontent.com/u/686887?v=4)](https://github.com/evantishuk "evantishuk (9 commits)")[![rickharris](https://avatars.githubusercontent.com/u/216355?v=4)](https://github.com/rickharris "rickharris (7 commits)")[![ounziw](https://avatars.githubusercontent.com/u/531277?v=4)](https://github.com/ounziw "ounziw (6 commits)")[![bakert](https://avatars.githubusercontent.com/u/1541?v=4)](https://github.com/bakert "bakert (3 commits)")[![phpwebnet](https://avatars.githubusercontent.com/u/2127871?v=4)](https://github.com/phpwebnet "phpwebnet (3 commits)")[![bobthecow](https://avatars.githubusercontent.com/u/53660?v=4)](https://github.com/bobthecow "bobthecow (2 commits)")[![br0p0p](https://avatars.githubusercontent.com/u/657922?v=4)](https://github.com/br0p0p "br0p0p (2 commits)")[![craighooghiem](https://avatars.githubusercontent.com/u/1476306?v=4)](https://github.com/craighooghiem "craighooghiem (2 commits)")[![tomschlick](https://avatars.githubusercontent.com/u/70184?v=4)](https://github.com/tomschlick "tomschlick (1 commits)")[![tyoshii](https://avatars.githubusercontent.com/u/427856?v=4)](https://github.com/tyoshii "tyoshii (1 commits)")[![adammbalogh](https://avatars.githubusercontent.com/u/645053?v=4)](https://github.com/adammbalogh "adammbalogh (1 commits)")[![web2citizen](https://avatars.githubusercontent.com/u/1286328?v=4)](https://github.com/web2citizen "web2citizen (1 commits)")[![dmyers](https://avatars.githubusercontent.com/u/207171?v=4)](https://github.com/dmyers "dmyers (1 commits)")[![feldsam](https://avatars.githubusercontent.com/u/951648?v=4)](https://github.com/feldsam "feldsam (1 commits)")[![iquito](https://avatars.githubusercontent.com/u/973653?v=4)](https://github.com/iquito "iquito (1 commits)")[![it-can](https://avatars.githubusercontent.com/u/644288?v=4)](https://github.com/it-can "it-can (1 commits)")

---

Tags

fuel-v1php

### Embed Badge

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

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

###  Alternatives

[rainlab/blog-plugin

Blog plugin for October CMS

17257.7k](/packages/rainlab-blog-plugin)[rainlab/builder-plugin

Builder plugin for October CMS

17147.2k1](/packages/rainlab-builder-plugin)[pfefferle/wordpress-activitypub

The ActivityPub protocol is a decentralized social networking protocol based upon the ActivityStreams 2.0 data format.

5671.4k1](/packages/pfefferle-wordpress-activitypub)[civicrm/civicrm-drupal-8

Open source constituent relationship management for non-profits, NGOs and advocacy organizations.

18238.1k2](/packages/civicrm-civicrm-drupal-8)[mediawiki/semantic-glossary

A terminology markup extension with a Semantic MediaWiki back-end

1352.4k](/packages/mediawiki-semantic-glossary)[humanmade/lottie-lite

A lightweight Lottie Animations Extension for WordPress

374.3k](/packages/humanmade-lottie-lite)

PHPackages © 2026

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