PHPackages                             crodas/simple-view-engine - 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. crodas/simple-view-engine

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

crodas/simple-view-engine
=========================

Simple View engine designed to generate code. Based on Laravel's 4 Blade.

v0.1.37(11y ago)55.0k↑2900%6BSD-4-ClausePHP

Since Aug 7Pushed 11y ago1 watchersCompare

[ Source](https://github.com/crodas/SimpleView)[ Packagist](https://packagist.org/packages/crodas/simple-view-engine)[ RSS](/packages/crodas-simple-view-engine/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (4)Versions (39)Used By (6)

Simple View
===========

[](#simple-view)

This project is a simple template compiler which aims to be compatible with [Laravel's Blade view engine](http://four.laravel.com/docs/templates#blade-templating).

It is different though as it generates code which doesn't depent at all in this project to run, therefore it can compile templates offline once.

How to use it
-------------

[](#how-to-use-it)

The simplest way of using the compiler is by downloading the `phar` cli application.

```
wget https://github.com/crodas/SimpleView/raw/master/view-compiler.phar -O view-compiler
chmod +x view-compiler
```

Now you have the `view-compiler` script ready to run. It is very simple to use now:

```
./view-compiler compile tests/views/
```

That would generate a single file `tests/views/Templates.php` with all our templates compiled.

```
require "tests/views/Templatas.php";

// By defualt its content will be print
Templates::get("if.tpl.php")->render(["name" => "cesar", "age" => 25]);

// but it can buffered as well
$buffer = Templates::get("if.tpl.php")->render(["name" => "cesar", "age" => 25], true);
echo $buffer;
```

You can optionally give a namespace to the generate template file to avoid class name conflicts

```
./view-compiler compile tests/views/ -N demo
```

Syntax
------

[](#syntax)

It is compatible with [Laravel's Blade view engine](http://four.laravel.com/docs/templates#blade-templating).

TODO
----

[](#todo)

1. Better error support
2. Mode documentation
3.

###  Health Score

34

—

LowBetter than 77% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity24

Limited adoption so far

Community14

Small or concentrated contributor base

Maturity65

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

Recently: every ~39 days

Total

37

Last Release

4080d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/36463?v=4)[C](/maintainers/crodas)[@crodas](https://github.com/crodas)

---

Top Contributors

[![crodas](https://avatars.githubusercontent.com/u/36463?v=4)](https://github.com/crodas "crodas (179 commits)")

---

Tags

bladelaravellaravel-viewstemplatetemplate-compiletemplate-engine

### Embed Badge

![Health badge](/badges/crodas-simple-view-engine/health.svg)

```
[![Health](https://phpackages.com/badges/crodas-simple-view-engine/health.svg)](https://phpackages.com/packages/crodas-simple-view-engine)
```

###  Alternatives

[tightenco/jigsaw

Simple static sites with Laravel's Blade.

2.2k438.5k29](/packages/tightenco-jigsaw)[vincentlanglet/twig-cs-fixer

A tool to automatically fix Twig code style

3348.4M67](/packages/vincentlanglet-twig-cs-fixer)[friendsoftwig/twigcs

Checkstyle automation for Twig

3586.1M60](/packages/friendsoftwig-twigcs)[braincrafted/bootstrap-bundle

BraincraftedBootstrapBundle integrates Bootstrap into Symfony2 by providing templates, Twig extensions, services and commands.

3932.0M33](/packages/braincrafted-bootstrap-bundle)[asm89/twig-lint

Standalone twig linter.

1186.0M2](/packages/asm89-twig-lint)[spress/spress

Static site generator with blogs support

37436.2k](/packages/spress-spress)

PHPackages © 2026

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