PHPackages                             bndrmrtn/flamephp\_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. bndrmrtn/flamephp\_engine

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

bndrmrtn/flamephp\_engine
=========================

Drop the old PHP &lt;?= syntax and never use it again, the solution is \*.flame.php wich converts {{ $title }} to &lt;?php echo $title ?&gt; and @foreach(...) ... @endforeach to &lt;?php foreach(...): ?&gt; ... &lt;?php endforeach ?&gt;, so UI development is not a PAIN anymore with flamephp\_engine

02PHP

Since Nov 14Pushed 2y agoCompare

[ Source](https://github.com/flamephpdev/flamephp_engine)[ Packagist](https://packagist.org/packages/bndrmrtn/flamephp_engine)[ RSS](/packages/bndrmrtn-flamephp-engine/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

FlamePHP, a Laravel inspired view rendering engine
==================================================

[](#flamephp-a-laravel-inspired-view-rendering-engine)

How to add to a project?
------------------------

[](#how-to-add-to-a-project)

Install it via composer and add it to your file.

```
composer require bndrmrtn/flamephp_engine:dev-main
```

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

Configure or use the default config

```
use Bndrmrtn\FlamephpEngine\FlamePHP;
use Bndrmrtn\FlamephpEngine\FlamePHP\Config;

$flame = new FlamePHP(
     viewsDirectory: '...', // The directory where you store your views
     useDevelopmentMode: true, // Your project is in development mode or not
     cacheDirectory: '...',  // The directory where you want to store your cache data
     config: new Config, // Custom config, or use the default
);
```

How to use it?
==============

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

You can use it with `*.flame.php` files with a directory named views in your root folder, or the `parseString` option that doesn't requires any file. (Except the cache files that auto generated by this tool).

Code examples
-------------

[](#code-examples)

### With the textParser option

[](#with-the-textparser-option)

```
use Bndrmrtn\FlamephpEngine\FlamePHP;

$flame = new FlamePHP;

$flame->parseString('
     Hello {{ $world }}
', ['world' => 'Developer'],
);

// Hello Developer
```

### With the file option

[](#with-the-file-option)

```
// ...
$flame->includeFile(
     'filename', // without the .flame.php extension!
     ['name' => 'John'] // add props to it
);
```

Actually you can get the path of the file's cache with the `parseFile` method, like this:

```
// ...

$parsed_file = $flame->parseFile(
     'filename', // without the .flame.php extension!
     // No props here
);

echo $parsed_file; // output: C:\...\your_project\flamephp_engine\cache\views\filename.flame.php
```

### Demo

[](#demo)

You can check the `/tests` folder and run the tests with PHPUnit

### Documentation

[](#documentation)

Here [FlameCore Official Views Documentation](https://flamephp.mrtn.vip/docs/v1/views/getting-started) you can find a small documentation of how it works, but I must remind you that it documents a modified version and that you should follow the default settings as described above!

Credits
-------

[](#credits)

[Martin Binder](https://mrtn.vip), FullStack Web Developer, 4 years of experience with PHP, 3 with Laravel. Currently I am learning GoLang ;)

###  Health Score

13

—

LowBetter than 1% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity2

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity20

Early-stage or recently created project

 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/9fe8c4e2ce49eb0e1fbd01df05883a66fe37cdfc73cdc1ce5f641be3ffd48281?d=identicon)[bndrmrtn](/maintainers/bndrmrtn)

---

Top Contributors

[![bndrmrtn](https://avatars.githubusercontent.com/u/72764328?v=4)](https://github.com/bndrmrtn "bndrmrtn (7 commits)")

### Embed Badge

![Health badge](/badges/bndrmrtn-flamephp-engine/health.svg)

```
[![Health](https://phpackages.com/badges/bndrmrtn-flamephp-engine/health.svg)](https://phpackages.com/packages/bndrmrtn-flamephp-engine)
```

###  Alternatives

[mustache/mustache

A Mustache implementation in PHP.

3.3k44.6M291](/packages/mustache-mustache)[roots/acorn

Framework for Roots WordPress projects built with Laravel components.

9682.1M97](/packages/roots-acorn)[whitecube/nova-flexible-content

Flexible Content &amp; Repeater Fields for Laravel Nova.

8053.0M25](/packages/whitecube-nova-flexible-content)[mopa/bootstrap-bundle

Easy integration of twitters bootstrap into symfony2

7042.9M33](/packages/mopa-bootstrap-bundle)[limenius/react-bundle

Client and Server-side react rendering in a Symfony Bundle

3871.2M](/packages/limenius-react-bundle)[nicmart/string-template

StringTemplate is a very simple string template engine for php. I've written it to have a thing like sprintf, but with named and nested substutions.

2101.7M30](/packages/nicmart-string-template)

PHPackages © 2026

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