2017 © Pedro Peláez
 

library bandar

Fully tested, super minimalistic PHP template engine for PHP 5.2, 5.3, 5.4, 5.5

image

bandar/bandar

Fully tested, super minimalistic PHP template engine for PHP 5.2, 5.3, 5.4, 5.5

  • Saturday, August 23, 2014
  • by yani-
  • Repository
  • 1 Watchers
  • 5 Stars
  • 517 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 7 Versions
  • 0 % Grown

The README.md

Bandar

Build Status Code Coverage Scrutinizer Quality Score Bitdeli Badge Latest Stable Version Total Downloads, (*1)

Fully tested minimalistic PHP template engine. Include the class, set your templates location and start rendering., (*2)

Requirements

PHP v5.2 and up. Tested on PHP v5.2, v5.3, v5.4, v5.5, (*3)

Usage

// example.php
require_once 'lib/Bandar.php';
define(
    'BANDAR_TEMPLATES_PATH',
    dirname(__FILE__) . DIRECTORY_SEPARATOR . 'views'
);
Bandar::render('users/list', array('users' => array('name' => 'John Smith')));

```php // views/users/list.php , (*4)

    ' . $user['name'] . ''; } ?>
Run it
```bash
php example.php

Page with sidebar

// example-with-sidebar.php
require_once 'lib/Bandar.php';
define(
    'BANDAR_TEMPLATES_PATH',
    dirname(__FILE__) . DIRECTORY_SEPARATOR . 'views'
);
$sidebar = Bandar::getTemplateContent('common/sidebar');
Bandar::render(
    'users/list',
    array(
        'users'   => array(array('name' => 'John Smith')),
        'sidebar' => $sidebar
    )
);

```php // views/users/list.php , (*5)

    ' . $user['name'] . ''; } ?>
```php
// views/common/sidebar.php
Sidebar content

Run it, (*6)

php example-with-sidebar.php

Tests

Coverage reports are stored inside the coverage folder. The goal is to always have 100% coverage., (*7)

phpunit

Documentation

phpdoc -f lib/Bandar.php

Contributing

For code guidelines refer to .editorconfig. This project is following PEAR code standard - http://pear.php.net/manual/en/standards.php The project is following Vincent Driessen's branching model aka git flow - http://nvie.com/git-model/ Make sure to submit your pull requests against the develop branch, (*8)

License

MIT, (*9)

The Versions

23/08 2014

dev-develop

dev-develop http://github.com/yani-/bandar

Fully tested, super minimalistic PHP template engine for PHP 5.2, 5.3, 5.4, 5.5

  Sources   Download

MIT

The Requires

  • php >=5.2.0

 

template engine template engine

23/08 2014

dev-master

9999999-dev http://github.com/yani-/bandar

Fully tested, super minimalistic PHP template engine for PHP 5.2, 5.3, 5.4, 5.5

  Sources   Download

MIT

The Requires

  • php >=5.2.0

 

template engine template engine

23/08 2014

3.0.0

3.0.0.0 http://github.com/yani-/bandar

Fully tested, super minimalistic PHP template engine for PHP 5.2, 5.3, 5.4, 5.5

  Sources   Download

MIT

The Requires

  • php >=5.2.0

 

template engine template engine

24/11 2013

2.1.0

2.1.0.0 http://github.com/yani-/bandar

Fully tested, super minimalistic PHP template engine for PHP 5.2, 5.3, 5.4, 5.5

  Sources   Download

MIT

The Requires

  • php >=5.2.0

 

template engine template engine

15/11 2013

2.0.1

2.0.1.0 http://github.com/yani-/bandar

Fully tested, super minimalistic PHP template engine for PHP 5.2, 5.3, 5.4, 5.5

  Sources   Download

MIT

The Requires

  • php >=5.2.0

 

template engine template engine

14/11 2013

2.0.0

2.0.0.0 http://github.com/yani-/bandar

Fully tested, super minimalistic PHP template engine for PHP 5.2, 5.3, 5.4, 5.5

  Sources   Download

MIT

The Requires

  • php >=5.2.0

 

template engine template engine

10/11 2013

1.0.1

1.0.1.0 http://github.com/yani-/bandar

Fully tested, super minimalistic PHP template engine for PHP 5.2, 5.3, 5.4, 5.5

  Sources   Download

MIT

The Requires

  • php >=5.2.0

 

template engine template engine