PHPackages                             mml/twigstem - 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. mml/twigstem

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

mml/twigstem
============

Prototyping tool

v1.1.0(5y ago)049MITPHPPHP &gt;=7.2.5

Since Mar 19Pushed 5y ago2 watchersCompare

[ Source](https://github.com/MeccaMedialight/twigstem-core)[ Packagist](https://packagist.org/packages/mml/twigstem)[ Docs](https://github.com/MeccaMedialight/twigstem-core)[ RSS](/packages/mml-twigstem/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (9)Dependencies (1)Versions (11)Used By (0)

Twigstem
========

[](#twigstem)

Twigstem - Rapid prototyping with Twig templates

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

[](#installation)

For a new project, run the following to create a new composer.json file

```
composer init

```

Edit your composer to require twigstem

```
{
    ...
    "require": {
    	 "mml/twigstem": "^1.1",
    }
}

```

Run composer install

```
composer install

```

Example Project
---------------

[](#example-project)

Create a folder called 'public' to serve your site, and another folder called "src" to contain all your source files (views, data etc). In the public folder, create a php file to handle requests:

```
