Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/patinthehat/templated-text
Basic text templating for PHP 5+,7+.
https://github.com/patinthehat/templated-text
composer-package handlebars php php-library php5 php7 template-engine template-library templating
Last synced: 3 days ago
JSON representation
Basic text templating for PHP 5+,7+.
- Host: GitHub
- URL: https://github.com/patinthehat/templated-text
- Owner: patinthehat
- License: mit
- Created: 2017-01-31T04:20:16.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2017-02-13T16:21:10.000Z (almost 8 years ago)
- Last Synced: 2025-01-23T11:12:26.620Z (10 days ago)
- Topics: composer-package, handlebars, php, php-library, php5, php7, template-engine, template-library, templating
- Language: PHP
- Size: 5.86 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
### Permafrost Templated Text
---
Basic text templating for PHP 5+.---
#### Installation
Install with composer:
`composer require patinthehat/templated-text`---
#### Sample Usage
```php
variable('one', 'OONNEE')
->variable('hw', 'Hello World')
->filter('test', function($v) { return '->>'.$v.'<<-'; })
->template('This is a test template, one is {{one|aquote}} and {{hw}}! then, {{hw | quote | test}}!! and {{one | quote}} ');echo $tt->process() . PHP_EOL . PHP_EOL;
```---
#### Sample Output
`This is a test template, one is ->OONNEE<- and Hello World! then, ->>"Hello World"<<-!! and "OONNEE"`
---
#### License
This project is licensed under the [MIT License](LICENSE).