2017 © Pedro Peláez
 

library templated-text

Basic text templating system

image

patinthehat/templated-text

Basic text templating system

  • Monday, February 13, 2017
  • by patinthehat
  • Repository
  • 1 Watchers
  • 0 Stars
  • 3 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 3 Versions
  • 0 % Grown

The README.md

### Permafrost Templated Text

Basic text templating for PHP 5+., (*1)


Installation

Install with composer: composer require patinthehat/templated-text, (*2)


Sample Usage

<?php

include 'vendor/autoload.php';

use Permafrost\TemplatedText\TemplatedText;

$tt = new TemplatedText;

$tt ->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", (*3)


License

This project is licensed under the MIT License., (*4)

The Versions

13/02 2017

dev-master

9999999-dev

Basic text templating system

  Sources   Download

MIT

The Requires

  • php >=5.6.4

 

by Patrick Organ

13/02 2017

v1.1.0

1.1.0.0

Basic text templating system

  Sources   Download

MIT

The Requires

  • php >=5.6.4

 

by Patrick Organ

31/01 2017

v1.0.0

1.0.0.0

Basic text templating system

  Sources   Download

MIT

The Requires

  • php >=5.6.4

 

by Patrick Organ