PHPackages                             nyrodev/php-template-bundle - 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. nyrodev/php-template-bundle

ActiveSymfony-bundle[Templating &amp; Views](/categories/templating)

nyrodev/php-template-bundle
===========================

Symfony Bundle to keep using PHP templates

v7.0(5mo ago)2766↓33.3%2MITPHP

Since Aug 27Pushed 2mo ago2 watchersCompare

[ Source](https://github.com/nyroDev/PhpTemplateBundle)[ Packagist](https://packagist.org/packages/nyrodev/php-template-bundle)[ Docs](https://github.com/nyroDev/PhpTemplateBundle)[ RSS](/packages/nyrodev-php-template-bundle/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (1)Versions (8)Used By (2)

PhpTemplateBundle
=================

[](#phptemplatebundle)

Symfony Bundle in order to keep using PHP template

*This was not tested properly, use with caution*

Instalation
===========

[](#instalation)

```
composer require nyrodev/php-template-bundle dev-master

```

Usage
=====

[](#usage)

As you did before on Symfony 4, simply use your php template when rendering something. Usage examples :

```
$this->render('Admin/template.html.php', /* ... */);
$this->render('@MyBundle/Admin/template.html.php', /* ... */);

```

All helpers extings on Symfony 4 was also ported, like `assets`, `form`, `session`, etc... It means you can still use them on your PHP templates with `$view['helper']->call()`

Moreover, the tag `templating.helper` is still working.
You can still define your own PHP template helper by simply adding this tag, just like before.

You can also implements the `NyroDev\PhpTemplateBundle\Helper\HelperInterface` interface in order to be available from your view using the alias return by `getAlias`.

Notes
=====

[](#notes)

PHP Form templates does *NOT* work.
It requires more works and it shouldn't be too much work to rewrite only these templates into Twig.

Many source code comes from the [last version 4 of framework bundle](https://github.com/symfony/framework-bundle/tree/4.4). For now, the only changes made on these files have been removing deprecation notices and changing namespaces.

###  Health Score

44

—

FairBetter than 92% of packages

Maintenance79

Regular maintenance activity

Popularity21

Limited adoption so far

Community12

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 ~262 days

Recently: every ~199 days

Total

7

Last Release

152d ago

Major Versions

5.x-dev → v6.02023-10-12

6.x-dev → 7.x-dev2025-12-17

### Community

Maintainers

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

---

Top Contributors

[![nyroDev](https://avatars.githubusercontent.com/u/265662?v=4)](https://github.com/nyroDev "nyroDev (27 commits)")

### Embed Badge

![Health badge](/badges/nyrodev-php-template-bundle/health.svg)

```
[![Health](https://phpackages.com/badges/nyrodev-php-template-bundle/health.svg)](https://phpackages.com/packages/nyrodev-php-template-bundle)
```

###  Alternatives

[noiselabs/smarty-bundle

This Symfony bundle provides integration for the Smarty3 template engine.

53194.4k1](/packages/noiselabs-smarty-bundle)[damianociarla/rating-bundle

This Bundle provides functionality for a rating system for Symfony applications

236.1k](/packages/damianociarla-rating-bundle)[nicolassing/quill-bundle

A Symfony bundle that integrates Quill as a drop-in replacement for textarea Symfony form.

1013.0k](/packages/nicolassing-quill-bundle)

PHPackages © 2026

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