PHPackages                             gourmet/liquid - 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. gourmet/liquid

ActiveCakephp-plugin[Templating &amp; Views](/categories/templating)

gourmet/liquid
==============

Liquid templates for CakePHP 3

v1.0.0(11y ago)310MITPHP

Since Nov 28Pushed 10y ago2 watchersCompare

[ Source](https://github.com/gourmet/liquid)[ Packagist](https://packagist.org/packages/gourmet/liquid)[ Docs](http://github.com/gourmet/liquid)[ RSS](/packages/gourmet-liquid/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (3)Versions (5)Used By (0)

Liquid
======

[](#liquid)

[![Build Status](https://camo.githubusercontent.com/a2834f76a455667a22f032eb84eea4f0c10759e7314fe6a5d02a436e3d6173c0/68747470733a2f2f7472617669732d63692e6f72672f676f75726d65742f6c69717569642e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/gourmet/liquid)[![Total Downloads](https://camo.githubusercontent.com/092f5bf9a7114303de996717ea6aad4496e4e08b2f63daa32d1dbe9980322b4e/68747470733a2f2f706f7365722e707567782e6f72672f676f75726d65742f6c69717569642f646f776e6c6f6164732e737667)](https://packagist.org/packages/gourmet/liquid)[![License](https://camo.githubusercontent.com/22ea88991a1b84469bbacecc4daf477735be2b1d465fd98ccbb2926eb1dbef64/68747470733a2f2f706f7365722e707567782e6f72672f676f75726d65742f6c69717569642f6c6963656e73652e737667)](https://packagist.org/packages/gourmet/liquid)

Built to enable [Liquid](https://github.com/Shopify/liquid) templates in [CakePHP 3](http://cakephp.org).

Install
-------

[](#install)

Using [Composer](http://getcomposer.org):

```
composer require gourmet/liquid:~1.0

```

You then need to load the plugin. In `boostrap.php`, something like:

```
\Cake\Core\Plugin::load('Gourmet/Liquid');
```

You can then define any controller (or email) view class like so:

```
// in ProductsController.php beforeFilter
$this->viewClass = '\Gourmet\Liquid\View\View';

// passed to any email configuration as the 'viewRender' key and use it:
Email::config(['user' => ['viewRender' => '\Gourmet\Liquid\View\View']]);
$email = new Email('user');
$email->template('Hello {{ name }}', "{{ 'content' | fetch }}\n\nThis is an automated email.")
    ->to('baker@cakephp.org')
    ->viewVars(['name' => 'Baker'])
    ->send();
```

More documentation/filters/tags to come.

In the meantime, read more about the library this plugin wraps over [here](https://github.com/kalimatas/php-liquid)and about the liquid markup [here](https://github.com/Shopify/liquid/wiki) and [here](http://docs.shopify.com/themes/liquid-documentation/).

That's it!

Patches &amp; Features
----------------------

[](#patches--features)

- Fork
- Mod, fix
- Test - this is important, so it's not unintentionally broken
- Commit - do not mess with license, todo, version, etc. (if you do change any, bump them into commits of their own that I can ignore when I pull)
- Pull request - bonus point for topic branches

Bugs &amp; Feedback
-------------------

[](#bugs--feedback)

License
-------

[](#license)

Copyright (c)2015, Jad Bitar and licensed under [The MIT License](http://www.opensource.org/licenses/mit-license.php).

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity66

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

Total

4

Last Release

4070d ago

Major Versions

v0.1.2 → v1.0.02015-03-27

### Community

Maintainers

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

---

Top Contributors

[![jadb](https://avatars.githubusercontent.com/u/33527?v=4)](https://github.com/jadb "jadb (18 commits)")

---

Tags

cakephpliquid

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/gourmet-liquid/health.svg)

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

###  Alternatives

[friendsofcake/cakephp-csvview

A CSV View class for CakePHP

1762.5M3](/packages/friendsofcake-cakephp-csvview)[wyrihaximus/twig-view

Twig powered View for CakePHP

804.7M1](/packages/wyrihaximus-twig-view)[dereuromark/cakephp-ajax

A CakePHP plugin that makes working with AJAX a piece of cake.

55255.9k1](/packages/dereuromark-cakephp-ajax)[dereuromark/cakephp-feed

A CakePHP plugin containing a RssView to generate RSS feeds.

1353.7k1](/packages/dereuromark-cakephp-feed)[dereuromark/cakephp-meta

A CakePHP plugin for SEO meta tags, OpenGraph and Twitter Cards

1012.9k1](/packages/dereuromark-cakephp-meta)

PHPackages © 2026

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