PHPackages                             fe3dback/moredraw - 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. fe3dback/moredraw

Abandoned → [fe3dback/kx-draw](/?search=fe3dback%2Fkx-draw)Template[Templating &amp; Views](/categories/templating)

fe3dback/moredraw
=================

Handlebars two-side wrapper (js/php) - Same template anywhere with reactive update

125

Since Oct 12Compare

[ Source](https://github.com/fe3dback/moredraw)[ Packagist](https://packagist.org/packages/fe3dback/moredraw)[ RSS](/packages/fe3dback-moredraw/feed)WikiDiscussions Synced today

READMEChangelogDependenciesVersions (1)Used By (0)

DEPRECATED
==========

[](#deprecated)

Please see v2 instead:

[![Build Status](https://camo.githubusercontent.com/c2e99377a2e6b6fde3a725c9a95ce9cf1cff5fdd635ce51613752a4074e45637/68747470733a2f2f7472617669732d63692e6f72672f666533646261636b2f6d6f7265647261772e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/fe3dback/moredraw)[![Coverage Status](https://camo.githubusercontent.com/4416a9a16494036f8a473e2d2cd90e5dc7e45bfcc282158311dc36ed97ed47d9/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f6769746875622f666533646261636b2f6d6f7265647261772f62616467652e7376673f6272616e63683d6d6173746572)](https://coveralls.io/github/fe3dback/moredraw?branch=master)

MoreDraw
========

[](#moredraw)

Smart handlebars template with two-side render (php/js) with just one template and reactive data update. Based on zordius/lightncandy &amp;&amp; handlebars parser

#### Require (install)

[](#require-install)

- composer (for install)
- php7 (at least)
-  (optional, for js render only)

### Install PHP Side

[](#install-php-side)

install deps:

```
$ cd /your-project/
$ composer require fe3dback/moredraw

```

in project init (config, etc..) (before we use template render)

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

$moreDraw = new NeoHandlebars\MoreDraw();
$moreDraw->init([
  'templates_dir' => __DIR__ . '/templates', // where templates will be
  'cache_dir' => __DIR__ . '/tmp/cache' // where cache will be
]);

```

### Install JS Side (optional, only for js use)

[](#install-js-side-optional-only-for-js-use)

Install handlebars parser (handlebars.min-latest.js) from this page: [http://builds.handlebarsjs.com.s3.amazonaws.com/bucket-listing.html?sort=lastmod&amp;sortdir=desc](http://builds.handlebarsjs.com.s3.amazonaws.com/bucket-listing.html?sort=lastmod&sortdir=desc)

Or from official site:

in site footer (place when you include js files), add js lib

```

```

### Use

[](#use)

##### Use. Server Side

[](#use-server-side)

Create file **examples/test.hbs** in your templates folder. With some content like this: **hello {{name}}!**

```
// _index is optional, only if we need provided data in js later
echo $moreDraw->render('examples/test', ['_index' => 'to_world', 'name' => 'world']); // Hello world!
echo $moreDraw->render('examples/test', ['_index' => 'to_universe', 'name' => 'universe']); // Hello universe!

```

##### Use. Client Side

[](#use-client-side)

```
let data = MoreDraw.getData('examples/test', 'to_world'); // {'name' => 'world'}
data.name = data.name + " & me";
let html = MoreDraw.render('examples/test', data); // Hello world & me!

```

###  Health Score

20

—

LowBetter than 13% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity40

Maturing project, gaining track record

 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.

### Community

Maintainers

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

---

Top Contributors

[![fe3dback](https://avatars.githubusercontent.com/u/2073883?v=4)](https://github.com/fe3dback "fe3dback (21 commits)")

### Embed Badge

![Health badge](/badges/fe3dback-moredraw/health.svg)

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

###  Alternatives

[limenius/react-bundle

Client and Server-side react rendering in a Symfony Bundle

3861.2M](/packages/limenius-react-bundle)[area17/laravel-auto-head-tags

Laravel Auto Head Tags helps you build the list of head elements for your app

4616.0k](/packages/area17-laravel-auto-head-tags)[jelix/wikirenderer

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

1712.2k1](/packages/jelix-wikirenderer)[webkinder/sproutset

A Composer package for handling responsive images in Roots Bedrock + Sage + Blade projects.

281.8k](/packages/webkinder-sproutset)

PHPackages © 2026

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