Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/shapecode/twig-string-loader
https://github.com/shapecode/twig-string-loader
Last synced: 8 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/shapecode/twig-string-loader
- Owner: shapecode
- License: mit
- Created: 2019-07-03T09:04:06.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2023-12-02T15:20:04.000Z (12 months ago)
- Last Synced: 2024-09-16T01:15:06.878Z (about 2 months ago)
- Language: PHP
- Size: 14.6 KB
- Stars: 3
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
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'
));
```