2017 © Pedro Peláez
 

library foil

PHP template engine for native PHP templates

image

foil/foil

PHP template engine for native PHP templates

  • Thursday, February 8, 2018
  • by gmazzap
  • Repository
  • 18 Watchers
  • 155 Stars
  • 12,417 Installations
  • PHP
  • 6 Dependents
  • 1 Suggesters
  • 19 Forks
  • 13 Open issues
  • 22 Versions
  • 11 % Grown

The README.md

FOIL

PHP template engine, for PHP templates., (*1)


travis-ci status codecov.io license release, (*2)


Foil brings all the flexibility and power of modern template engines to native PHP templates. Write simple, clean and concise templates with nothing more than PHP., (*3)

Key Features

  • Templates inheritance (you'll never miss Twig or Blade)
  • Clean, concise and DRY templates
  • Dozen of ready-made helper functions and filters
  • Easily extensible and customizable
  • Multiple template folders with file auto-discover or custom picking
  • Auto or manual data escape
  • Powerful context API (preassign data to templates using conditions)
  • Framework agnostic, centralized API for very easy integration
  • Composer ready, fully unit and functional tested, PSR-1/2/4 compliant

...and many more, (*4)

Why?

Templates engines like Twig, or Blade are a great thing, really., (*5)

However, to use them one needs to learn another language with its own syntax and rules., (*6)

Moreover, using compiled engines to use even a simple PHP function one needs to write engine extension., (*7)

On its side, PHP is already a templating language, but honestly it's not a good one, because it's missing pivotal features of modern template engines, like template inheritance., (*8)


Requirements

Foil is framework agnostic, only thing needed is PHP 5.4+ and Composer to add Foil to you PHP project., (*9)


License

Foil is open source and released under MIT license. See LICENSE file for more info., (*10)

Question? Issues?

Foil is hosted on GitHub. Feel free to open issues there for suggestions, questions and real issues., (*11)

Who's Behind Foil

I'm Giuseppe, I deal with PHP since 2005. For questions, rants or chat ping me on Twitter (@gmazzap) or on "The Loop" (Stack Exchange) chat. Well, it's possible I'll ignore rants., (*12)

The Versions

08/02 2018

dev-master

9999999-dev https://github.com/Giuseppe-Mazzapica/Foil

PHP template engine for native PHP templates

  Sources   Download

MIT

The Requires

 

The Development Requires

templates template engine

04/05 2017
01/11 2016
22/06 2016

dev-issue-37

dev-issue-37 https://github.com/Giuseppe-Mazzapica/Foil

PHP template engine for native PHP templates

  Sources   Download

MIT

The Requires

 

The Development Requires

templates template engine

27/05 2016
08/03 2016
22/02 2016
01/11 2015
06/07 2015
04/07 2015
02/07 2015
25/05 2015
25/05 2015
22/05 2015
24/04 2015
24/04 2015
22/04 2015
18/03 2015

0.3.0

0.3.0.0 https://github.com/Giuseppe-Mazzapica/Foil

PHP template engine for native PHP templates

  Sources   Download

MIT

The Requires

 

The Development Requires

templates template engine

18/02 2015

0.2.0

0.2.0.0 https://github.com/Giuseppe-Mazzapica/Foil

PHP template engine for native PHP templates

  Sources   Download

MIT

The Requires

 

The Development Requires

templates template engine

25/01 2015

0.1.4

0.1.4.0 https://github.com/Giuseppe-Mazzapica/Foil

PHP template engine for native PHP templates

  Sources   Download

MIT

The Requires

 

The Development Requires

templates template engine

21/01 2015

0.1.3

0.1.3.0 https://github.com/Giuseppe-Mazzapica/Foil

PHP template engine for native PHP templates

  Sources   Download

MIT

The Requires

 

The Development Requires

templates template engine

21/01 2015

0.1.2

0.1.2.0 https://github.com/Giuseppe-Mazzapica/Foil

PHP template engine for native PHP templates

  Sources   Download

MIT

The Requires

 

The Development Requires

templates template engine