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

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

simexis/laravel-liquid
======================

Liquid template engine for Laravel

0.10.10(3y ago)181.5k6[3 issues](https://github.com/jooorooo/laravel-liquid/issues)MITPHPPHP &gt;= 5.6

Since Mar 25Pushed 3y ago2 watchersCompare

[ Source](https://github.com/jooorooo/laravel-liquid)[ Packagist](https://packagist.org/packages/simexis/laravel-liquid)[ Docs](https://github.com/jooorooo/laravel-liquid)[ RSS](/packages/simexis-laravel-liquid/feed)WikiDiscussions master Synced today

READMEChangelogDependencies (1)Versions (32)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

31

—

LowBetter than 66% of packages

Maintenance17

Infrequent updates — may be unmaintained

Popularity27

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity56

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 66.7% 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 ~48 days

Recently: every ~259 days

Total

28

Last Release

1354d ago

### Community

Maintainers

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

---

Top Contributors

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

---

Tags

templateliquid

### Embed Badge

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

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

###  Alternatives

[liquid/liquid

Liquid template engine for PHP

1845.2M34](/packages/liquid-liquid)[statamic-rad-pack/runway

Eloquently manage your database models in Statamic.

135224.7k7](/packages/statamic-rad-pack-runway)[duncanmcclean/statamic-cargo

Comprehensive e-commerce addon for Statamic. Build bespoke e-commerce sites without the complexity.

3416.7k](/packages/duncanmcclean-statamic-cargo)

PHPackages © 2026

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