2017 © Pedro Peláez
 

package php-tal-view

Brings PHPTAL to Laravel

image

niterain/php-tal-view

Brings PHPTAL to Laravel

  • Friday, January 5, 2018
  • by niterain
  • Repository
  • 1 Watchers
  • 3 Stars
  • 56 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 2 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

Allows you to use PHPTAL seamlessly in Laravel, (*1)

Installation

Add niterain\PhpTalView as a requirement to composer.json:, (*2)

composer require niterain/php-tal-view:2.0.1.x-dev

Update your packages with composer update or install with composer install., (*3)

Once Composer has installed or updated your packages you need to register PhpTalView with Laravel. Open up app/config/app.php and find the providers key towards the bottom and add:, (*4)

'Niterain\PhpTalView\PhpTalViewServiceProvider',

Configuration

Currently PhpTalView is set by default to HTML5, however, you can change this setting in its config.php file, XHTML, or XML., (*5)

Usage

You call the PhpTalView template like you would any other view:, (*6)

View::make('hello', array(...))

Filters

PHPTAL also has a nice feature which you can use called filters, for example I have one that bust the cache for images, js, css, this is configurable via the config file., (*7)

'preFilters' => array(
    'bustCache',
    'minimizeJs',
    'adderJs'
)

The Versions

05/01 2018

dev-master

9999999-dev http://github.com/niterain/PhpTalView

Brings PHPTAL to Laravel

  Sources   Download

MIT

The Requires

 

laravel phptal

05/01 2018

2.0.1.x-dev

2.0.1.9999999-dev http://github.com/niterain/PhpTalView

Brings PHPTAL to Laravel

  Sources   Download

MIT

laravel phptal