PHPackages                             jsnlib/joomla\_template\_chrome - 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. jsnlib/joomla\_template\_chrome

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

jsnlib/joomla\_template\_chrome
===============================

讓製作模板區塊的部分，可以分離 PHP 與 HTML

1.0.3(7y ago)021MITPHPPHP &gt;=7.0.0

Since Apr 25Pushed 7y agoCompare

[ Source](https://github.com/fdjkgh580/joomla_template_chrome)[ Packagist](https://packagist.org/packages/jsnlib/joomla_template_chrome)[ RSS](/packages/jsnlib-joomla-template-chrome/feed)WikiDiscussions master Synced 3w ago

READMEChangelogDependencies (1)Versions (5)Used By (0)

joomla\_template\_chrome
========================

[](#joomla_template_chrome)

讓製作模板區塊的部分，可以分離 PHP 與 HTML，可以更容易閱讀 HTML 與邏輯。以前台為範例，假設我們自訂模板名稱叫做 `mynewtemplate`：

區塊PHP
-----

[](#區塊php)

templates/mynewtemplate/html/modules.php

```
require_once JPATH_BASE . '/vendor/autoload.php';

use \Jsnlib\Joomla\Template\Chrome;

// 設定區塊的路徑
Chrome::dir(__DIR__);

function modChrome_lalaland($module, &$params, &$attribs)
{
    // 讓 Chrome 自動讀取 templates/mynewtemplate/html/style/lalaland.html
    // 帶入外部變數 $module
    Chrome::render('lalaland.html', function () use ($module)
    {
        // 在這裡可以做任何參數的處理，最後回傳參數提供渲染
        return ['module' => $module];
    });
}
```

區塊HTML
------

[](#區塊html)

templates/mynewtemplate/html/style/lalaland.html

```

        {{ module.title }}

    {{ module.content | raw }}

```

###  Health Score

26

—

LowBetter than 41% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity61

Established project with proven stability

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

Total

4

Last Release

2856d ago

### Community

Maintainers

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

---

Top Contributors

[![fdjkgh580-2](https://avatars.githubusercontent.com/u/60056647?v=4)](https://github.com/fdjkgh580-2 "fdjkgh580-2 (7 commits)")

---

Tags

templatechromejoomla

### Embed Badge

![Health badge](/badges/jsnlib-joomla-template-chrome/health.svg)

```
[![Health](https://phpackages.com/badges/jsnlib-joomla-template-chrome/health.svg)](https://phpackages.com/packages/jsnlib-joomla-template-chrome)
```

PHPackages © 2026

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