PHPackages                             funivan/viewable - 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. funivan/viewable

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

funivan/viewable
================

Make any object viewable

0.0.1(11y ago)010.9kMITPHPPHP &gt;=5.4.0

Since Feb 26Pushed 11y ago1 watchersCompare

[ Source](https://github.com/funivan/Viewable)[ Packagist](https://packagist.org/packages/funivan/viewable)[ Docs](https://github.com/funivan/Viewable)[ RSS](/packages/funivan-viewable/feed)WikiDiscussions master Synced today

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

Viewable
========

[](#viewable)

[![GitHub tag](https://camo.githubusercontent.com/9c15da9b422f9f218cc9bd506a57bd57016314f6c5883434e5a5c28539c0d4f3/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f7461672f66756e6976616e2f5669657761626c652e7376673f7374796c653d666c61742d737175617265)](https://github.com/funivan/Viewable/tags)[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE.md)[![Build Status](https://camo.githubusercontent.com/3fdf8fd671b5b467a0f29073c2105ea26b18ee0a35ac9d62776f586ecc906181/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f66756e6976616e2f5669657761626c652f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/funivan/Viewable)[![Coverage Status](https://camo.githubusercontent.com/1119fb321c841915a5c08f602fcf921d7d31234dbcfa93af5614a95cef4c4dcb/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f636f7665726167652f672f66756e6976616e2f5669657761626c652e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/funivan/Viewable/code-structure)[![Quality Score](https://camo.githubusercontent.com/1910a498da8f9f394a9dc7a9d3b7c5101404c3e7a6da086a8d82cada3e117892/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f66756e6976616e2f5669657761626c652e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/funivan/Viewable)[![Total Downloads](https://camo.githubusercontent.com/ac2fba486fb829c4d67370d18fdfe14d31e40b311b7736a9fdf83fe31e7de9df/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f66756e6976616e2f7669657761626c652e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/funivan/viewable)

Make any object viewable

Install
-------

[](#install)

Via Composer

```
$ composer require funivan/viewable
```

Usage
-----

[](#usage)

```
class Email {
 use \Funivan\Viewable\Viewable;

 public function getBody(){
  return $this->renderView('simple', array('name'=>'funivan'));
 }

}
```

Testing
-------

[](#testing)

```
    ./vendor/bin/phpunit
```

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](https://github.com/funivan/Viewable/blob/master/CONTRIBUTING.md) for details.

Credits
-------

[](#credits)

- [funivan](https://github.com/funivan)
- [All Contributors](https://github.com/funivan/Viewable/contributors)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

25

—

LowBetter than 35% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity18

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity48

Maturing project, gaining track record

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

4145d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/1ee14f8f97b3ead4c91823e410ea170293b55be64adf12a20d965f19008839a6?d=identicon)[funivan](/maintainers/funivan)

---

Tags

templating

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/funivan-viewable/health.svg)

```
[![Health](https://phpackages.com/badges/funivan-viewable/health.svg)](https://phpackages.com/packages/funivan-viewable)
```

###  Alternatives

[twig/twig

Twig, the flexible, fast, and secure template language for PHP

8.7k465.7M7.2k](/packages/twig-twig)[mustache/mustache

A Mustache implementation in PHP.

3.3k47.6M324](/packages/mustache-mustache)[smarty/smarty

Smarty - the compiling PHP template engine

2.4k41.8M458](/packages/smarty-smarty)[timber/timber

Create WordPress themes with beautiful OOP code and the Twig Template Engine

5.7k3.7M132](/packages/timber-timber)[league/plates

Plates, the native PHP template system that's fast, easy to use and easy to extend.

1.5k6.2M273](/packages/league-plates)[eftec/bladeone

The standalone version Blade Template Engine from Laravel in a single php file

8379.7M104](/packages/eftec-bladeone)

PHPackages © 2026

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