PHPackages                             ingwiephoenix/bird3-flipflop - 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. ingwiephoenix/bird3-flipflop

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

ingwiephoenix/bird3-flipflop
============================

Super small view engine for those that want to play it safe.

1.0.0(10y ago)115MITPHP

Since Oct 29Pushed 10y ago1 watchersCompare

[ Source](https://github.com/IngwiePhoenix/FlipFlop)[ Packagist](https://packagist.org/packages/ingwiephoenix/bird3-flipflop)[ RSS](/packages/ingwiephoenix-bird3-flipflop/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (4)Used By (0)

FlipFlop - A tiny view engine.
==============================

[](#flipflop---a-tiny-view-engine)

This is FlipFlop. A super, super tiny view engine that is used by BIRD3 to display things in it's new Laravel core.

I made this since I *just* wanted to run regular PHP templates without anything super fancy. So I just made this!

Features at a glance
--------------------

[](#features-at-a-glance)

- A view is rendered into a layout by default.
- Partial views via `__partial__` variable, or by using the FlipFlop facade.
- Views have contexts, so they can use `$this`.
- It just overrides your current `PhpEngine`, meaning that we are 100% API compatible.

Install
-------

[](#install)

Your typical

```
composer require ingwiephoenix/bird3-flipflop

```

will work just fine.

Next, you'll want to pop `config/app.php` and look for

```
Illuminate\View\ViewServiceProvider::class,

```

... and add this underneath:

```
BIRD3\Extensions\FlipFlop\Providers\FlipFlopServiceProfider::class,

```

... and within the `alias` section, you'd add:

```
"FlipFlop" => BIRD3\Extensions\FlipFlop\Facades\FlipFlop::class,

```

.. and it's done!

Usage
-----

[](#usage)

```
