PHPackages                             priotas/twig-qrcode-extension - 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. priotas/twig-qrcode-extension

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

priotas/twig-qrcode-extension
=============================

A Twig extension for embedding inline QR codes in Twig templates

v1(8y ago)313.0k2[1 PRs](https://github.com/priotas/twig-qrcode-extension/pulls)Apache-2.0PHP

Since Sep 20Pushed 4y ago1 watchersCompare

[ Source](https://github.com/priotas/twig-qrcode-extension)[ Packagist](https://packagist.org/packages/priotas/twig-qrcode-extension)[ RSS](/packages/priotas-twig-qrcode-extension/feed)WikiDiscussions master Synced today

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

[![Build Status](https://camo.githubusercontent.com/13d4908c5ad8d6999c859608cc86a4dd6c9296b6fb39b24c9f85e3ec9dbda77f/68747470733a2f2f7472617669732d63692e6f72672f7072696f7461732f747769672d7172636f64652d657874656e73696f6e2e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/priotas/twig-qrcode-extension)

Overview
========

[](#overview)

- A Twig extension for embedding inline QR codes in Twig templates.
- The standard filter output is a [DataURL](https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/Data_URIs) string of the processed text.

```
composer require priotas/twig-qrcode-extension

```

```

>

```

```
use Priotas\Twig\Extension\QrCode;

$loader = new \Twig_Loader_Filesystem(__DIR__);
$twig = new \Twig_Environment($loader);
$twig->addExtension(new QrCode());

echo $twig->render('index.html.twig');
```

![]()

Available filter options
========================

[](#available-filter-options)

OptionTypeDefaultDescriptiontypestringpngThe image type. Available types are png,eps,svglabelstringA label for the QR codesizeinteger200The size of the QR codeversionintegerautoThe version of the QR code. Range 1-40svgstringdata\_uriHow a SVG should be rendered. **data\_uri** is a data:svg+xml blob. **inline** is an inline svg tagDependencies
============

[](#dependencies)

-
-
-

###  Health Score

34

—

LowBetter than 75% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity28

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity63

Established project with proven stability

 Bus Factor1

Top contributor holds 71.4% 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

3209d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/3afa709401445586294eac0c60244fcd66eb57429dbcca239b5a04ab033a0c45?d=identicon)[madflow](/maintainers/madflow)

---

Top Contributors

[![madflow](https://avatars.githubusercontent.com/u/183248?v=4)](https://github.com/madflow "madflow (5 commits)")[![omarev](https://avatars.githubusercontent.com/u/328793?v=4)](https://github.com/omarev "omarev (2 commits)")

---

Tags

qrcodetwig-extensionqr codeqrcodetwigfun

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/priotas-twig-qrcode-extension/health.svg)

```
[![Health](https://phpackages.com/badges/priotas-twig-qrcode-extension/health.svg)](https://phpackages.com/packages/priotas-twig-qrcode-extension)
```

###  Alternatives

[symfony/ux-twig-component

Twig components for Symfony

22018.6M356](/packages/symfony-ux-twig-component)[symfony/ux-live-component

Live components for Symfony

1647.0M127](/packages/symfony-ux-live-component)[yellowskies/qr-code-bundle

Symfony Barcode &amp; QR Code Generator Bundle with Twig extension

37711.6k](/packages/yellowskies-qr-code-bundle)[symfony/ux-toolkit

A tool to easily create a design system in your Symfony app with customizable, well-crafted Twig components

16126.1k1](/packages/symfony-ux-toolkit)[mati365/ckeditor5-symfony

CKEditor 5 integration for Symfony

262.6k](/packages/mati365-ckeditor5-symfony)

PHPackages © 2026

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