PHPackages                             jacktaken/laravel-zc-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. jacktaken/laravel-zc-liquid

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

jacktaken/laravel-zc-liquid
===========================

Liquid template engine for Laravel

0.10.08(5y ago)028[4 PRs](https://github.com/jacktaken/laravel-zc-liquid/pulls)MITPHPPHP &gt;= 5.6

Since Mar 25Pushed 5y ago1 watchersCompare

[ Source](https://github.com/jacktaken/laravel-zc-liquid)[ Packagist](https://packagist.org/packages/jacktaken/laravel-zc-liquid)[ Docs](https://github.com/jooorooo/laravel-liquid)[ RSS](/packages/jacktaken-laravel-zc-liquid/feed)WikiDiscussions feature\_zc\_liquid Synced yesterday

READMEChangelog (1)Dependencies (1)Versions (30)Used By (0)

Liquid template engine for Laravel
==================================

[](#liquid-template-engine-for-laravel)

Liquid is a PHP port of the [Liquid template engine for Ruby](https://github.com/Shopify/liquid), which was written by Tobias Lutke. Although there are many other templating engines for PHP, including Smarty (from which Liquid was partially inspired), Liquid had some advantages that made porting worthwhile:

- Readable and human friendly syntax, that is usable in any type of document, not just html, without need for escaping.
- Quick and easy to use and maintain.
- 100% secure, no possibility of embedding PHP code.
- Clean OO design, rather than the mix of OO and procedural found in other templating engines.
- Seperate compiling and rendering stages for improved performance.
- 100% Markup compatibility with a Ruby templating engine, making templates usable for either.
- Unit tested: Liquid is fully unit-tested. The library is stable and ready to be used in large projects.

Why Liquid?
-----------

[](#why-liquid)

Why another templating library?

Liquid was written to meet three templating library requirements: good performance, easy to extend, and simply to use.

Installing
----------

[](#installing)

You can install this lib via [composer](https://getcomposer.org/):

```
composer require simexis/laravel-liquid

```

Laravel 5.5 uses Package Auto-Discovery, so doesn't require you to manually add the ServiceProvider

### Laravel 5.5+:

[](#laravel-55)

If you don't use auto-discovery, add the ServiceProvider to the providers array in config/app.php

```
Liquid\LiquidServiceProvider::class,
```

If you want to use the facade to compiler:

```
'Liquid' => Liquid\Facade::class,
```

```
php artisan vendor:publish --provider="Liquid\LiquidServiceProvider"
```

Example template
----------------

[](#example-template)

```
{% if products %}

	{% for product in products %}

		{{ product.name }}
		Only {{ product.price | price }}

		{{ product.description | prettyprint | paragraph }}

		{{ 'it rocks!' | paragraph }}

	{% endfor %}

{% endif %}

```

How to use Liquid
-----------------

[](#how-to-use-liquid)

```
class HomeController extends Comtroller {

    public function index()
    {
        $products = Products::all();

        return view('home', [
            'products' => $products
        ]);
    }

}

```

To find more examples at the original Ruby implementation repository's [wiki page](https://github.com/Shopify/liquid/wiki).

Requirements
------------

[](#requirements)

- PHP 5.3+
- [laravel/framework 5.3+](https://github.com/laravel/framework)

Issues
------

[](#issues)

Have a bug? Please create an issue here on GitHub!

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity55

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.

###  Release Activity

Cadence

Every ~24 days

Recently: every ~84 days

Total

25

Last Release

2020d ago

### Community

Maintainers

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

---

Top Contributors

[![jacktaken](https://avatars.githubusercontent.com/u/14047919?v=4)](https://github.com/jacktaken "jacktaken (6 commits)")

---

Tags

templateliquid

### Embed Badge

![Health badge](/badges/jacktaken-laravel-zc-liquid/health.svg)

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

###  Alternatives

[acacha/admin-lte-template-laravel

AdminLTE template applied to Laravel Scaffolding

1.8k387.2k8](/packages/acacha-admin-lte-template-laravel)[liquid/liquid

Liquid template engine for PHP

1854.8M25](/packages/liquid-liquid)[simexis/laravel-liquid

Liquid template engine for Laravel

181.5k](/packages/simexis-laravel-liquid)

PHPackages © 2026

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