PHPackages                             theneiam/twade - 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. theneiam/twade

ActiveLibrary

theneiam/twade
==============

View engine plugin for Seotoaster 2.x, that brings Twig and Blade power to the system

010PHP

Since Aug 18Pushed 11y ago1 watchersCompare

[ Source](https://github.com/theneiam/twade)[ Packagist](https://packagist.org/packages/theneiam/twade)[ RSS](/packages/theneiam-twade/feed)WikiDiscussions master Synced 2d ago

READMEChangelogDependenciesVersions (1)Used By (0)

TWADE
=====

[](#twade)

[![Code Climate](https://camo.githubusercontent.com/28b4e9d639a1127b39f2104ce54f148460cbdfc6633c0386501bb7e5c027155e/68747470733a2f2f636f6465636c696d6174652e636f6d2f6769746875622f7468656e6569616d2f74776164652f6261646765732f6770612e737667)](https://codeclimate.com/github/theneiam/twade)[![Latest Stable Version](https://camo.githubusercontent.com/1501ddc4810fde24b959455594c92b0a817ec5bce1d844d87b2ebfce92e60298/68747470733a2f2f706f7365722e707567782e6f72672f7468656e6569616d2f74776164652f762f737461626c652e737667)](https://packagist.org/packages/theneiam/twade) [![Total Downloads](https://camo.githubusercontent.com/f8add75e56cceec58a1f77ec7e2794b834fe84050841be19303dda92ec1bcb4d/68747470733a2f2f706f7365722e707567782e6f72672f7468656e6569616d2f74776164652f646f776e6c6f6164732e737667)](https://packagist.org/packages/theneiam/twade) [![Latest Unstable Version](https://camo.githubusercontent.com/66b2dff81fc3c8532c11bb6dbe9116c88cc3d27d0df7461c20222d459d5664fc/68747470733a2f2f706f7365722e707567782e6f72672f7468656e6569616d2f74776164652f762f756e737461626c652e737667)](https://packagist.org/packages/theneiam/twade) [![License](https://camo.githubusercontent.com/0939cf1f91fac7653248544e04a04d4552c6413a521f871e402bee81aa049df2/68747470733a2f2f706f7365722e707567782e6f72672f7468656e6569616d2f74776164652f6c6963656e73652e737667)](https://packagist.org/packages/theneiam/twade)

TwAde is the plugin for the [SEO Toaster](http://www.seotoaster.com/) CMS

With TwAde it is very easy to start using the power of the popular template engines, such as [Twig](http://twig.sensiolabs.org/), [Blade](http://laravel.com/docs/templates) or [Mustache](https://github.com/bobthecow/mustache.php/wiki), within your plugins or, even, in the SEO Toaster's core!

INSTALLATION
------------

[](#installation)

### Manual

[](#manual)

1. Download or clone plugin from GitHub to your *Seotoaster* plugins directory
2. Go to the *twade* directory and run composer install command
3. Disco

### Via [Composer](http://getcomposer.org)

[](#via-composer)

```
$ curl -s https://getcomposer.org/installer | php
```

- Now, change your composer.json

```
{
    "require": {
        "theneiam/twade": "dev-master"
    }
}
```

- And install

```
$ composer install
```

- Disco!

USEAGE
------

[](#useage)

Example of how to use power of the famous template engines with TwAde. *you can find some demos in the Twade.php*

```
// Define config options.

// Twig engine options. It supports Twig extensions now!
$options = array(
    'engine'        => 'Twig',
    'templatesPath' => __DIR__ . '/example/twig/',
    'cache'         => __DIR__ . '/../../cache/',
    'extensions'    => array(
        'Twig_Extensions_Extension_I18n' // The i18n extension only works if the PHP gettext extension is enabled.
    )
);

// Blade engine options
$options = array(
    'engine'        => 'Blade',
    'templatesPath' => __DIR__ . '/example/blade/',
    'cache'         => __DIR__ . '/../../cache/'
);

// Mustache engine options. Yeah! Twade supports mustache from now on!
$options = array(
    'engine'        => 'Mustache',
    'templatesPath' => __DIR__ . '/example/mustache',
    'cache'         => __DIR__ . '/../../cache/'
);

// Now, let's create a view and enjoy
// Create view
$view = \Twade\Engine\Factory::create($options);

// Assign some vars
$view->welcome = 'Welcome to the TwAde plugin!';

// Disco!
echo $this->_view->render('welcome');
```

###  Health Score

20

—

LowBetter than 14% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community7

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/7c6d473adebe61ab910bbd05490c675ace559e856a2edc7a02fa0a04c1701f83?d=identicon)[theneiam](/maintainers/theneiam)

---

Top Contributors

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

### Embed Badge

![Health badge](/badges/theneiam-twade/health.svg)

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

PHPackages © 2026

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