PHPackages                             sxule/meddle - 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. sxule/meddle

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

sxule/meddle
============

PHP templating engine with the front-end developer in mind.

v0.7.1(7y ago)037MITPHPPHP ^7.0

Since Sep 2Pushed 6y ago1 watchersCompare

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

READMEChangelogDependencies (1)Versions (23)Used By (0)

Meddle
======

[](#meddle)

What is Meddle?
---------------

[](#what-is-meddle)

Meddle is a server-side templating engine build in PHP with the front-end developer in mind. It uses a syntax similar to VueJS or Angular having mustache tags for data interpolation and HTML attributes for control structures.

Why Meddle?
-----------

[](#why-meddle)

There's already tons of PHP templating engines out there. In fact, PHP itself is a templating engine, so why do we need another one?

Put simply, Meddle is a templating engine with front-end developers in mind. It creates a security barrier between the template designer and the server, and unlike other back-end templating engines, Meddle syntax is kept in HTML attributes and mustache tags, which, if you're familiar with modern JavaScript frameworks like VueJS or Angular, this should be fairly straight forward.

Basic Usage
-----------

[](#basic-usage)

### PHP (index.php)

[](#php-indexphp)

```
