PHPackages                             a3gz/chubby-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. [Templating &amp; Views](/categories/templating)
4. /
5. a3gz/chubby-view

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

a3gz/chubby-view
================

PHP Renderer for Chubby

2.3.3(4y ago)01.1kMITPHP

Since Jul 24Pushed 4y agoCompare

[ Source](https://github.com/a3gz/chubby-view)[ Packagist](https://packagist.org/packages/a3gz/chubby-view)[ Docs](https://github.com/a3gz/chubby-view)[ RSS](/packages/a3gz-chubby-view/feed)WikiDiscussions develop Synced today

READMEChangelog (3)Dependencies (1)Versions (18)Used By (0)

Chubby View
===========

[](#chubby-view)

PHP Renderer for [Chubby](https://github.com/a3gz/chubby).

Chubby View is a PHP renderer that facilitates a very handy way of rendering views with Slim.

**A template**

```
class DefaultTemplate extends \Chubby\View\Template
{
    /**
    * @var array
    */
    protected $components = [
        'header'    => 'src/app/views/components/header.php',
        'footer'    => 'src/app/views/components/footer.php',
    ];

    /**
    * @var string
    */
    protected $template = 'src/app/views/templates/default-template.php';
} // class

```

`src/app/views/templates/default-template.php`

```

```

**How to use**

```
$tpl = new \Templates\DefaultTemplate('path/to/templates');

// The component path here is relative,
// to th path/to/template given in the constructor
$tpl->define('content', 'src/app/views/components/hello')
    ->setData(['name' => $name])
    ->write( $response );

// It's also possible to use aboslute paths by adding a leading
// slash:
$tpl->define('content', '/abs/path/to/src/app/views/components/hello')
    ->setData(['name' => $name])
    ->write( $response );

```

`src/app/views/components/hello.php`

```

    console.log('Hello', '');

        .hello strong {
            color: blue;
            font-size: 16px;
        }
        .bye strong {
            color: green;
        }

```

**Resulting HTML file**

```

            .hello strong {
                color: blue;
                font-size: 16px;
            }
            .bye strong {
                color: green;
            }

            Welcome to Chubby 2
            An application template for Slim 3

            Hello world

            Bye

            by Alejandro Arbiza

            console.log('Hello', 'world');

```

###  Health Score

32

—

LowBetter than 74% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity14

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity72

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

Recently: every ~143 days

Total

15

Last Release

1494d ago

Major Versions

0.0.6 → 1.0.02019-04-18

1.0.0 → 2.0.02019-06-18

### Community

Maintainers

![](https://www.gravatar.com/avatar/71a4c7affb109a5e4a15bdeaf55b70e268d59b0101c8ebacf899cb8e237c4950?d=identicon)[a3gz](/maintainers/a3gz)

---

Top Contributors

[![a3gz](https://avatars.githubusercontent.com/u/84980?v=4)](https://github.com/a3gz "a3gz (44 commits)")

---

Tags

slimtemplateviewrenderchubby

### Embed Badge

![Health badge](/badges/a3gz-chubby-view/health.svg)

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

###  Alternatives

[jenssegers/blade

The standalone version of Laravel's Blade templating engine for use outside of Laravel.

8661.2M95](/packages/jenssegers-blade)[fiskhandlarn/blade

A library for using Laravel Blade templates in WordPress/WordPlate.

365.7k](/packages/fiskhandlarn-blade)

PHPackages © 2026

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