PHPackages                             mi-la01/kt\_twig-js - 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. mi-la01/kt\_twig-js

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

mi-la01/kt\_twig-js
===================

twig.js, flexible, secure, and high-performance templating engine for Javascript

1.0(10y ago)036Apache2PHPPHP &gt;=5.3.2

Since Jul 5Pushed 9y ago1 watchersCompare

[ Source](https://github.com/MI-LA01/kt_twig-js)[ Packagist](https://packagist.org/packages/mi-la01/kt_twig-js)[ RSS](/packages/mi-la01-kt-twig-js/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (1)Dependencies (3)Versions (4)Used By (0)

kt\_Twig.js
===========

[](#kt_twigjs)

[Twig.js](http://jmsyst.com/libs/twig.js) is a PHP project that compiles Twig templates into executable Javascript for client-side execution. It is not to be confused with [Twig.js](https://github.com/justjohn/twig.js/), which is a pure Javascript implementation of the Twig templating language.

mi-la01tag

Twig Compatibility
------------------

[](#twig-compatibility)

Compatibility with vanilla PHP Twig is not yet at 100%. If you need your templates to work with both Twig.js *and* Twig, stick to the supported filters and functions described below.

#### Supported Filters

[](#supported-filters)

- `capitalize`
- `default`
- `e`
- `escape`
- `first`
- `join`
- `keys`
- `length`
- `lower`
- `nl2br`
- `replace`
- `upper`
- `url_encode`

#### Supported Functions

[](#supported-functions)

- `block`
- `include`
- `range`

Incompatibilities
-----------------

[](#incompatibilities)

The following is a list of functionality present in Twig that is not yet available in Twig.js. There are some really easy pickings in these lists for anybody hoping to make a contribution to the project.

#### Unsupported Filters

[](#unsupported-filters)

- `abs`
- `batch`
- `convert_encoding`
- `date`
- `date_modify`
- `format`
- `json_encode`
- `last`
- `number_format`
- `merge`
- `upper`
- `raw`
- `reverse`
- `round`
- `slice`
- `sort`
- `split`
- `striptags`
- `title`
- `trim`
- `url_encode`

#### Unsupported Functions

[](#unsupported-functions)

- `attribute`
- `constant`
- `cycle`
- `date`
- `dump`
- `max`
- `min`
- `parent`
- `random`
- `range`
- `source`
- `template_from_string`

License
-------

[](#license)

Twig.js is released under the [Apache License](http://www.apache.org/licenses/LICENSE-2.0), Version 2.0.

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity60

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

Unknown

Total

1

Last Release

3970d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/fe9c321f17f1d6943fe433efda924bc29eaef8a7c8c8a98282d8f9a9dfa4e32f?d=identicon)[mi-la01](/maintainers/mi-la01)

---

Top Contributors

[![alexis-gruet-deel](https://avatars.githubusercontent.com/u/197890?v=4)](https://github.com/alexis-gruet-deel "alexis-gruet-deel (2 commits)")

---

Tags

templating

###  Code Quality

TestsPHPUnit

Code StylePHP\_CodeSniffer

### Embed Badge

![Health badge](/badges/mi-la01-kt-twig-js/health.svg)

```
[![Health](https://phpackages.com/badges/mi-la01-kt-twig-js/health.svg)](https://phpackages.com/packages/mi-la01-kt-twig-js)
```

###  Alternatives

[timber/timber

Create WordPress themes with beautiful OOP code and the Twig Template Engine

5.7k3.4M111](/packages/timber-timber)[jasny/twig-extensions

A set of useful Twig filters

10710.2M8](/packages/jasny-twig-extensions)[jms/twig-js

twig.js, flexible, secure, and high-performance templating engine for Javascript

360389.6k5](/packages/jms-twig-js)[goetas/twital

PHP templating engine that combines Twig and PHPTal power points

12813.1k1](/packages/goetas-twital)[goetas/twital-bundle

Twital templating engine Symfony Bundle

206.8k](/packages/goetas-twital-bundle)[tommcdo/kohana-twig

Kohana 3.3 module for the popular Twig template engine

241.9k](/packages/tommcdo-kohana-twig)

PHPackages © 2026

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