PHPackages                             componenta/templater-app - 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. componenta/templater-app

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

componenta/templater-app
========================

Componenta application integration for template rendering

v1.0.0(1mo ago)081MITPHPPHP ^8.4

Since Jun 17Pushed 1mo agoCompare

[ Source](https://github.com/componenta/templater-app)[ Packagist](https://packagist.org/packages/componenta/templater-app)[ RSS](/packages/componenta-templater-app/feed)WikiDiscussions main Synced 1w ago

READMEChangelog (1)Dependencies (6)Versions (2)Used By (1)

Componenta Templater App
========================

[](#componenta-templater-app)

Application integration for `componenta/templater`. It registers the template engine, renderer, bootloader, static `View` helper, and global `view()` function.

Installation
------------

[](#installation)

```
composer require componenta/templater-app
```

The package exposes `Componenta\Templater\App\ConfigProvider` through Composer metadata and autoloads `src/functions.php`.

Registered Services
-------------------

[](#registered-services)

`Componenta\Templater\App\ConfigProvider` registers:

Service or keyRegistration`Componenta\Templater\Engine``EngineFactory`, using template config and `PathResolverInterface`.`Componenta\Templater\RendererInterface``RendererFactory`, wrapping the registered engine.`ViewBootloader`Autowired bootloader.`AppConfigKey::BOOTLOADERS`Adds `ViewBootloader` so `View` receives the renderer during application boot.Configuration
-------------

[](#configuration)

Template settings are read from the `renderer` config section:

```
use Componenta\Templater\App\ConfigKey;

return [
    ConfigKey::ROOT => [
        ConfigKey::TEMPLATES_DIR => 'templates',
        ConfigKey::EXTENSION => 'phtml',
        ConfigKey::FOLDERS => [
            'mail' => 'templates/mail',
        ],
        ConfigKey::FUNCTIONS => [
            'asset' => static fn(string $path): string => '/assets/' . ltrim($path, '/'),
        ],
    ],
];
```

Paths are resolved through `PathResolverInterface`. The default template directory is `templates`, and the default extension is `phtml`.

Runtime Behavior
----------------

[](#runtime-behavior)

`ViewBootloader` runs in HTTP and CLI scopes. It gets `RendererInterface` from the container and installs it into `View::setRenderer()`. After boot, code can call:

```
echo view('welcome', ['name' => 'Componenta']);
echo Componenta\Templater\App\View::render('welcome');
```

Calling `view()` or `View::render()` before the bootloader runs throws `LogicException`.

Boundary
--------

[](#boundary)

The package wires templates into an application. The renderer implementation itself lives in `componenta/templater`; path resolution lives in `componenta/path-resolver`.

###  Health Score

41

—

FairBetter than 87% of packages

Maintenance91

Actively maintained with recent releases

Popularity7

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity51

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

Unknown

Total

1

Last Release

43d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/20490712?v=4)[Andrey Shelamkoff](/maintainers/Shelamkoff)[@Shelamkoff](https://github.com/Shelamkoff)

---

Top Contributors

[![Shelamkoff](https://avatars.githubusercontent.com/u/20490712?v=4)](https://github.com/Shelamkoff "Shelamkoff (1 commits)")

### Embed Badge

![Health badge](/badges/componenta-templater-app/health.svg)

```
[![Health](https://phpackages.com/badges/componenta-templater-app/health.svg)](https://phpackages.com/packages/componenta-templater-app)
```

###  Alternatives

[symfony/symfony

The Symfony PHP framework

31.4k87.2M2.2k](/packages/symfony-symfony)[symfony/dependency-injection

Allows you to standardize and centralize the way objects are constructed in your application

4.2k455.6M9.9k](/packages/symfony-dependency-injection)[api-platform/core

Build a fully-featured hypermedia or GraphQL API in minutes!

2.6k51.2M353](/packages/api-platform-core)[moonshine/moonshine

Laravel administration panel

1.3k253.1k86](/packages/moonshine-moonshine)[ecotone/ecotone

Enterprise architecture layer for Laravel and Symfony — CQRS, Event Sourcing, Durable Workflows (Sagas, Orchestrators), Projections, and Outbox messaging via PHP attributes.

564576.7k54](/packages/ecotone-ecotone)[tempest/framework

The PHP framework that gets out of your way.

2.2k34.4k17](/packages/tempest-framework)

PHPackages © 2026

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