PHPackages                             jsangrador/phptal-view - 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. [Framework](/categories/framework)
4. /
5. jsangrador/phptal-view

AbandonedArchivedLibrary[Framework](/categories/framework)

jsangrador/phptal-view
======================

Render PHPTAL view templates into a PSR-7 Response object.

3.0.0(10y ago)027MITPHP

Since Sep 29Pushed 5y agoCompare

[ Source](https://github.com/jsangrador/PHPTAL-View)[ Packagist](https://packagist.org/packages/jsangrador/phptal-view)[ RSS](/packages/jsangrador-phptal-view/feed)WikiDiscussions master Synced 1mo ago

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

Development of this fork has been moved to

PHPTAL Renderer
---------------

[](#phptal-renderer)

This is a renderer for rendering PHPTAL view scripts into a PSR-7 Response object. It works well with Slim Framework 3.

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

[](#installation)

Install with [Composer](http://getcomposer.org):

```
composer require jsangrador/PHPTAL-view

```

Usage With Slim 3
-----------------

[](#usage-with-slim-3)

```
use Slim\Views\PhpTalRenderer;

include "vendor/autoload.php";

$app = new Slim\App();
$container = $app->getContainer();
$container['renderer'] = new PhpTalRenderer("./templates");

$app->get('/hello/{name}', function ($request, $response, $args) {
    return $this->renderer->render($response, "/hello.html", $args);
});

$app->run();
```

Usage with any PSR-7 Project
----------------------------

[](#usage-with-any-psr-7-project)

```
//Construct the View
$phpView = new PhpTalRenderer("./path/to/templates");

//Render a Template
$response = $phpView->render(new Response(), "/path/to/template.html", $yourData);
```

Exceptions
----------

[](#exceptions)

`\RuntimeException` - if template does not exist

`\InvalidArgumentException` - if $data contains 'template'

###  Health Score

30

—

LowBetter than 65% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity70

Established project with proven stability

 Bus Factor1

Top contributor holds 58.9% 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 ~9 days

Recently: every ~18 days

Total

13

Last Release

3761d ago

Major Versions

1.0.3 → 2.0.0-RC12015-10-01

2.0.6 → 3.0.02016-01-21

### Community

Maintainers

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

---

Top Contributors

[![geggleto](https://avatars.githubusercontent.com/u/4027602?v=4)](https://github.com/geggleto "geggleto (33 commits)")[![akrabat](https://avatars.githubusercontent.com/u/33135?v=4)](https://github.com/akrabat "akrabat (16 commits)")[![rotexdegba](https://avatars.githubusercontent.com/u/1242622?v=4)](https://github.com/rotexdegba "rotexdegba (2 commits)")[![sasezaki](https://avatars.githubusercontent.com/u/42755?v=4)](https://github.com/sasezaki "sasezaki (2 commits)")[![jsangradorp](https://avatars.githubusercontent.com/u/6999515?v=4)](https://github.com/jsangradorp "jsangradorp (1 commits)")[![dopesong](https://avatars.githubusercontent.com/u/7201955?v=4)](https://github.com/dopesong "dopesong (1 commits)")[![silentworks](https://avatars.githubusercontent.com/u/79497?v=4)](https://github.com/silentworks "silentworks (1 commits)")

---

Tags

frameworkslimtemplateviewrendererphptal

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/jsangrador-phptal-view/health.svg)

```
[![Health](https://phpackages.com/badges/jsangrador-phptal-view/health.svg)](https://phpackages.com/packages/jsangrador-phptal-view)
```

###  Alternatives

[slim/php-view

Render PHP view scripts into a PSR-7 Response object.

2739.7M92](/packages/slim-php-view)[slim/twig-view

Slim Framework 4 view helper built on top of the Twig 3 templating component

3708.0M208](/packages/slim-twig-view)[rubellum/slim-blade-view

Slim Framework 3 view helper built on the Blade component

1822.4k2](/packages/rubellum-slim-blade-view)[mathmarques/smarty-view

Slim Framework 4 view helper built on top of the Smarty templating component

24134.7k1](/packages/mathmarques-smarty-view)[projek-xyz/slim-plates

Render your Slim 3 application views using Plates template engine.

2678.2k3](/packages/projek-xyz-slim-plates)

PHPackages © 2026

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