PHPackages                             mattkenefick/twigtovue - 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. mattkenefick/twigtovue

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

mattkenefick/twigtovue
======================

Convert Twig templates to Vue templates

21.3k[1 issues](https://github.com/mattkenefick/twigtovue/issues)PHPCI failing

Since Apr 26Pushed 4y ago1 watchersCompare

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

READMEChangelogDependenciesVersions (1)Used By (0)

[![TwigToVue](./assets/repo/logo-hero.jpg)](./assets/repo/logo-hero.jpg)

[![Last version](https://camo.githubusercontent.com/09081b510f58ca15f29b24145e420fc82b77a7f80dbf82d051d0f9d44e588d4c/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f7461672f6d6174746b656e656669636b2f74776967746f7675652e7376673f7374796c653d666c61742d737175617265)](https://camo.githubusercontent.com/09081b510f58ca15f29b24145e420fc82b77a7f80dbf82d051d0f9d44e588d4c/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f7461672f6d6174746b656e656669636b2f74776967746f7675652e7376673f7374796c653d666c61742d737175617265)[![Dependency status](https://camo.githubusercontent.com/2a9927a6c0dd0a40fe7462b7d89248b33ac3209257a08e76f582e37f1ad19aa9/68747470733a2f2f696d672e736869656c64732e696f2f64617669642f6d6174746b656e656669636b2f74776967746f7675652e7376673f7374796c653d666c61742d737175617265)](https://david-dm.org/mattkenefick/twigtovue)[![Dev Dependencies Status](https://camo.githubusercontent.com/cf143ba6f4bf4f9bc6ce7dba2be1c0dca3c6a992cee28a51b3d31eb7b7e13e32/68747470733a2f2f696d672e736869656c64732e696f2f64617669642f6465762f6d6174746b656e656669636b2f74776967746f7675652e7376673f7374796c653d666c61742d737175617265)](https://david-dm.org/mattkenefick/twigtovue#info=devDependencies)[![Donate](https://camo.githubusercontent.com/538b7224b22301e34e4fbdcb20c2936c5a35f32695f843c2ca4570d44bf2e9cf/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f646f6e6174652d70617970616c2d626c75652e7376673f7374796c653d666c61742d737175617265)](https://paypal.me/polymermallard)

[ ![follow on Twitter](https://camo.githubusercontent.com/0666b7b0c11675af4ed797eae427c2993035167eb91549671c9d744d3ebdf1a4/68747470733a2f2f696d672e736869656c64732e696f2f747769747465722f666f6c6c6f772f6d6174746b656e656669636b2e7376673f7374796c653d736f6369616c266c6f676f3d74776974746572)](https://twitter.com/intent/follow?screen_name=mattkenefick)Install
-------

[](#install)

```
$ composer require twigtovue

```

Test
----

[](#test)

```
$ composer test

$ composer test-one

```

Configure
---------

[](#configure)

```
$ composer install

```

### Namespacing

[](#namespacing)

```
{% include 'web/' ~ 'view/film/index/index.twig' with {
    films: []
} %}

```

Separate include strings to break out namespacing of Vue class name. TwigToVue will use the last string, so the example above will look for ViewFilmIndex.

### Duplicate Names

[](#duplicate-names)

Duplicate names are automatically stripped from includes. In the above example, "index/index.twig" becomes `ViewFilmIndex`.

License
-------

[](#license)

**twigtovue** © [polymer mallard](https://polymermallard.com), released under the [ISC](https://github.com/mattkenefick/twigtovue/blob/master/LICENSE.md) License.
Authored and maintained by Polymer Mallard with help from [contributors](https://github.com/mattkenefick/twigtovue/contributors).

> [polymer mallard](https://www.polymermallard.com) · GitHub [@mattkenefick](https://github.com/mattkenefick) · Twitter [@mattkenefick](https://twitter.com/mattkenefick)

###  Health Score

16

—

LowBetter than 5% of packages

Maintenance10

Infrequent updates — may be unmaintained

Popularity17

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity26

Early-stage or recently created project

 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.

### Community

Maintainers

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

---

Top Contributors

[![mattkenefick](https://avatars.githubusercontent.com/u/149809?v=4)](https://github.com/mattkenefick "mattkenefick (49 commits)")

### Embed Badge

![Health badge](/badges/mattkenefick-twigtovue/health.svg)

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

###  Alternatives

[mustache/mustache

A Mustache implementation in PHP.

3.3k44.6M291](/packages/mustache-mustache)[roots/acorn

Framework for Roots WordPress projects built with Laravel components.

9682.1M97](/packages/roots-acorn)[whitecube/nova-flexible-content

Flexible Content &amp; Repeater Fields for Laravel Nova.

8053.0M25](/packages/whitecube-nova-flexible-content)[mopa/bootstrap-bundle

Easy integration of twitters bootstrap into symfony2

7042.9M33](/packages/mopa-bootstrap-bundle)[limenius/react-bundle

Client and Server-side react rendering in a Symfony Bundle

3871.2M](/packages/limenius-react-bundle)[nicmart/string-template

StringTemplate is a very simple string template engine for php. I've written it to have a thing like sprintf, but with named and nested substutions.

2101.7M30](/packages/nicmart-string-template)

PHPackages © 2026

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