PHPackages                             bear/phptal-module - 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. bear/phptal-module

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

bear/phptal-module
==================

BEAR.Sunday PHPTAL adapter module

0.2.1(11y ago)291BSD-3-ClausePHP

Since Jun 4Pushed 11y ago1 watchersCompare

[ Source](https://github.com/tanakahisateru/BEAR.PhptalModule)[ Packagist](https://packagist.org/packages/bear/phptal-module)[ RSS](/packages/bear-phptal-module/feed)WikiDiscussions master Synced 3w ago

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

BEAR.PhptalModule
=================

[](#bearphptalmodule)

Introduction
------------

[](#introduction)

BEAR.PhptalModule is [PHPTAL](https://github.com/pornel/PHPTAL) adaptor extension for [BEAR.Sunday](https://github.com/koriym/BEAR.Sunday) framework.

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

[](#installation)

Add the package name to your `composer.json`.

```
{
    "require": {
        "bear/phptal-module": "~0.2"
    }
}
```

Usage
-----

[](#usage)

For example you are using [BEAR.Package](https://github.com/koriym/BEAR.Package) ...

At first install the module by modifying `YourApp\Module\App\AppModule` as:

```
namespace YourApp\Module\App;

use BEAR\PhptalModule\Provide\TemplateEngine\Phptal\PhptalModule;

class AppModule extends AbstractModule
{
    protected function configure()
    {
        // (Existing configurations here)

        $this->install(new PhptalModule($this));
    }
}
```

Place TAL syntax mixed XHTML file into `YourApp/src/Resource/Page` directory.

### src/Resource/Page/Index.xhtml

[](#srcresourcepageindexxhtml)

```
>

    Index

        Some greeting message
        template engine: PHPTAL

```

To define shared PHPTAL's macro, place another template file into `YourApp/var/lib/phptal/template/layout`.

### var/lib/phptal/template/layout/default.xhtml

[](#varlibphptaltemplatelayoutdefaultxhtml)

```
>

    title

    page

```

Run your app, enjoy!

###  Health Score

25

—

LowBetter than 36% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity55

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 53.6% 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 ~207 days

Total

3

Last Release

4353d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/15b77626b4e66c3b9bff13810f781e379f2da5e9e6d7194956ae5a14a3f2eed5?d=identicon)[tanakahisateru](/maintainers/tanakahisateru)

---

Top Contributors

[![koriym](https://avatars.githubusercontent.com/u/529021?v=4)](https://github.com/koriym "koriym (15 commits)")[![tanakahisateru](https://avatars.githubusercontent.com/u/403893?v=4)](https://github.com/tanakahisateru "tanakahisateru (13 commits)")

---

Tags

BEAR.SundayphptalBEAR.Sunday module

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/bear-phptal-module/health.svg)

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

###  Alternatives

[phptal/phptal

PHPTAL is a templating engine for PHP5 that implements Zope Page Templates syntax

178436.7k19](/packages/phptal-phptal)[namesco/ztal

ZTal makes integrating the PHP templating system PHPTAL into Zend Framework easy.

2119.9k](/packages/namesco-ztal)[bear/package

BEAR.Sunday application framework package

30553.3k25](/packages/bear-package)[jelix/wikirenderer

WikiRenderer is a library to generate HTML or anything else from wiki content.

1712.2k1](/packages/jelix-wikirenderer)

PHPackages © 2026

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