Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/shapecode/twig-string-loader


https://github.com/shapecode/twig-string-loader

Last synced: 8 days ago
JSON representation

Awesome Lists containing this project

README

        

# Shapecode - Twig String Loader

[![paypal](https://img.shields.io/badge/Donate-Paypal-blue.svg)](http://paypal.me/nloges)

[![PHP Version](https://img.shields.io/packagist/php-v/shapecode/twig-string-loader.svg)](https://packagist.org/packages/shapecode/twig-string-loader)
[![Latest Stable Version](https://img.shields.io/packagist/v/shapecode/twig-string-loader.svg?label=stable)](https://packagist.org/packages/shapecode/twig-string-loader)
[![Latest Unstable Version](https://img.shields.io/packagist/vpre/shapecode/twig-string-loader.svg?label=unstable)](https://packagist.org/packages/shapecode/twig-string-loader)
[![Total Downloads](https://img.shields.io/packagist/dt/shapecode/twig-string-loader.svg)](https://packagist.org/packages/shapecode/twig-string-loader)
[![Monthly Downloads](https://img.shields.io/packagist/dm/shapecode/twig-string-loader.svg?label=monthly)](https://packagist.org/packages/shapecode/twig-string-loader)
[![Daily Downloads](https://img.shields.io/packagist/dd/shapecode/twig-string-loader.svg?label=daily)](https://packagist.org/packages/shapecode/twig-string-loader)
[![License](https://img.shields.io/packagist/l/shapecode/twig-string-loader.svg)](https://packagist.org/packages/shapecode/twig-string-loader)

## Install instructions

First you need to add `shapecode/twig-string-loader` to `composer.json`:

Do it by execute `composer require shapecode/twig-string-loader` or do it manually

``` json
{
"require": {
"shapecode/twig-string-loader": "^1.0"
}
}
```

Add the string loader to your `$twig` object

``` php
render('Hello {{ world }}', array(
'world' => 'World'
));
```