PHPackages                             flow/flow - 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. flow/flow

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

flow/flow
=========

Fast PHP templating engine

0.8.0(9y ago)62712↓100%5[1 issues](https://github.com/nramenta/flow/issues)MITPHPPHP &gt;=7.0.0

Since Oct 15Pushed 9y ago10 watchersCompare

[ Source](https://github.com/nramenta/flow)[ Packagist](https://packagist.org/packages/flow/flow)[ RSS](/packages/flow-flow/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (21)Used By (0)

Flow - Fast PHP Templating Engine
=================================

[](#flow---fast-php-templating-engine)

Introduction
------------

[](#introduction)

Flow began life as a major fork of the original Twig templating engine by Armin Ronacher, which he made for [Chyrp](http://chyrp.net/), a now-defunct blogging engine. Flow features template inheritance, includes, macros, custom helpers, whitespace control and many little features that make writing templates enjoyable. Flow tries to give a consistent and coherent experience in writing clean templates. Flow compiles each template into its own PHP class; used in conjunction with PHP's OPcache, this makes Flow a very fast and efficient templating engine. Templates can be read from files, loaded from string arrays, or even from databases with relative ease.

Installation
------------

[](#installation)

The easiest way to install is by using [Composer](http://getcomposer.org/); the minimum composer.json configuration is:

```
{
    "require": {
        "flow/flow": "0.7.*"
    }
}

```

Flow requires PHP 7 or newer.

Usage
-----

[](#usage)

Using Flow in your code is straight forward:

```
