PHPackages                             xmeltrut/wing-commander - 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. [Templating &amp; Views](/categories/templating)
4. /
5. xmeltrut/wing-commander

ActiveLibrary[Templating &amp; Views](/categories/templating)

xmeltrut/wing-commander
=======================

Mustache template library wrapper for the Flight microframework

1.2.0(10y ago)9603MITPHPPHP &gt;=5.3.0

Since Nov 13Pushed 9y ago2 watchersCompare

[ Source](https://github.com/xmeltrut/WingCommander)[ Packagist](https://packagist.org/packages/xmeltrut/wing-commander)[ RSS](/packages/xmeltrut-wing-commander/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (2)Versions (4)Used By (0)

Wing Commander
==============

[](#wing-commander)

[![Latest Stable Version](https://camo.githubusercontent.com/8d663d53d6414003e3b4cd8b7c322c8ab180e61ec89f7257660babf27e10f4f4/68747470733a2f2f706f7365722e707567782e6f72672f786d656c747275742f77696e672d636f6d6d616e6465722f762f737461626c65)](https://packagist.org/packages/xmeltrut/wing-commander)[![License](https://camo.githubusercontent.com/9f1c566b0d1c0227627219c76a4c50031a2e983fd5978b3d247715cb2189e130/68747470733a2f2f706f7365722e707567782e6f72672f786d656c747275742f77696e672d636f6d6d616e6465722f6c6963656e7365)](https://packagist.org/packages/xmeltrut/wing-commander)

Wing Commander is a Mustache wrapper for the Flight PHP microframework.

Installation
------------

[](#installation)

The easiest way to install Wing Commander is using Composer. Create a composer.json file in the root of your project and require Wing Commander.

```
{
    "require": {
        "xmeltrut/wing-commander": "*"
    }
}

```

Then run the install command, and this will install all dependencies - including Flight and Mustache.

```
composer install

```

Usage
-----

[](#usage)

A basic usage would look like the following.

```
require 'vendor/autoload.php';

WingCommander::init();

Flight::route('/', function(){
    Flight::view()->set("someVar", "Hello, World!");
    Flight::render("homepage", array(), "body");
    Flight::render("layout", array("title" => $pageTitle));
});

Flight::start();

```

By default, it will look for Mustache templates in the ./templates directory of your project. You can change this by calling the setTemplatePath method.

```
Flight::view()->setTemplatePath("./application/templates");

```

Lets create homepage.mustache.

```
{{someVar}}

```

A layout to wrap it in too - layout.mustache.

```
Wing Commander says:
{{{body}}}

```

Bringing it all together, you can use it like you would use the standard Flight view component.

```
Flight::view()->set("someVar", "Hello, World!");
Flight::render("homepage", array(), "body");
Flight::render("layout", array("title" => $pageTitle));

```

Further Reading
---------------

[](#further-reading)

- [Flight](http://flightphp.com/)
- [Mustache.php](https://github.com/bobthecow/mustache.php)

###  Health Score

30

—

LowBetter than 64% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity19

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity60

Established project with proven stability

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

Total

2

Last Release

3790d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/961906?v=4)[Chris Worfolk](/maintainers/xmeltrut)[@xmeltrut](https://github.com/xmeltrut)

---

Top Contributors

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

---

Tags

mustacheflightmicroframework

### Embed Badge

![Health badge](/badges/xmeltrut-wing-commander/health.svg)

```
[![Health](https://phpackages.com/badges/xmeltrut-wing-commander/health.svg)](https://phpackages.com/packages/xmeltrut-wing-commander)
```

###  Alternatives

[mustache/mustache

A Mustache implementation in PHP.

3.3k44.6M291](/packages/mustache-mustache)[zordius/lightncandy

An extremely fast PHP implementation of handlebars ( http://handlebarsjs.com/ ) and mustache ( http://mustache.github.io/ ).

60910.5M45](/packages/zordius-lightncandy)[salesforce/handlebars-php

Handlebars processor for php

80713.2k11](/packages/salesforce-handlebars-php)[pattern-lab/styleguidekit-assets-default

The assets for the default StyleguideKit for Pattern Lab. Contains styles and mark-up for Pattern Lab's front-end.

351.4M6](/packages/pattern-lab-styleguidekit-assets-default)[wrklst/docxmustache

docx template manipulation class, based on mustache templating language

578.1k](/packages/wrklst-docxmustache)[proai/laravel-handlebars

A Laravel wrapper for LightnCandy for using the Handlebars (and Mustache) template engine.

38204.7k](/packages/proai-laravel-handlebars)

PHPackages © 2026

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