All Projects → FoilPHP → Foil

FoilPHP / Foil

Licence: mit
PHP template engine for native PHP templates

Projects that are alternatives of or similar to Foil

Magento2-Twig
Twig Template Engine for Magento2
Stars: ✭ 58 (-64.2%)
Mutual labels:  twig, template-engine
Stick
A golang port of the Twig templating engine
Stars: ✭ 132 (-18.52%)
Mutual labels:  twig, template-engine
Yii2 Twig
Yii 2 Twig extension.
Stars: ✭ 130 (-19.75%)
Mutual labels:  twig, template-engine
korte
Kotlin cORoutines Template Engine for Multiplatform Kotlin
Stars: ✭ 69 (-57.41%)
Mutual labels:  twig, template-engine
MulleScion
🌱 A modern template engine for Objective C
Stars: ✭ 14 (-91.36%)
Mutual labels:  twig, template-engine
Awesome Twig
A curated list of amazingly awesome Twig extensions, snippets and tutorials
Stars: ✭ 63 (-61.11%)
Mutual labels:  twig, template-engine
view-twig
Yii View Twig Renderer
Stars: ✭ 24 (-85.19%)
Mutual labels:  twig, template-engine
Twital
Twital is a "plugin" for Twig that adds some sugar syntax, which makes its templates similar to PHPTal or VueJS.
Stars: ✭ 116 (-28.4%)
Mutual labels:  twig, template-engine
Chyrp Lite
An ultra-lightweight blogging engine, written in PHP.
Stars: ✭ 131 (-19.14%)
Mutual labels:  twig
Silverstripe Installer
The installer for SilverStripe CMS and Framework. Check out this repository to start working with SilverStripe!
Stars: ✭ 156 (-3.7%)
Mutual labels:  twig
Idea Php Toolbox
Collections of tools and improvements to make PhpStorm a little bit better
Stars: ✭ 147 (-9.26%)
Mutual labels:  twig
Www.php Fig.org
Source for the PHP-FIG website
Stars: ✭ 135 (-16.67%)
Mutual labels:  twig
Terrahub
Terraform Automation and Orchestration Tool (Open Source)
Stars: ✭ 148 (-8.64%)
Mutual labels:  twig
Tempy
Python Object Oriented Html Templating System
Stars: ✭ 126 (-22.22%)
Mutual labels:  template-engine
Hsweb Expands
文件压缩解压、office文档读写、http,ftp请求模拟、shell执行、模板引擎
Stars: ✭ 160 (-1.23%)
Mutual labels:  template-engine
Phptal
PHP Template Attribute Language — template engine for XSS-proof well-formed XHTML and HTML5 pages
Stars: ✭ 155 (-4.32%)
Mutual labels:  template-engine
Bbmustache
Binary pattern match Based Mustache template engine for Erlang/OTP.
Stars: ✭ 141 (-12.96%)
Mutual labels:  template-engine
Jxls
Java library for creating Excel reports using Excel templates
Stars: ✭ 128 (-20.99%)
Mutual labels:  template-engine
Codeigniter Ss Twig
A Simple and Secure Twig integration for CodeIgniter 3.x and 4.x
Stars: ✭ 139 (-14.2%)
Mutual labels:  twig
Aeromock
Lightweight mock web application server
Stars: ✭ 152 (-6.17%)
Mutual labels:  template-engine

FOIL

PHP template engine, for PHP templates.


travis-ci status codecov.io license release


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.

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

Why?

Templates engines like Twig, or Blade are a great thing, really.

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

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

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.


Requirements

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


License

Foil is open source and released under MIT license. See LICENSE file for more info.

Question? Issues?

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

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.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].