Welcome to this repository! Here, you can find all the resources you need to prepare for the Twig certification exam. This certification will help you master Twig and demonstrate your skills in template creation and manipulation.
To pass the Twig certification, focus on two main areas:
-
Core Knowledge: Start by reading and understanding the key concepts in these documents:
-
Tags, Functions, and Filters: Get familiar with the essential Twig tags, functions, and filters listed below. Aim to master these within a week, especially if you already have some experience with Twig.
Learn these tags to control template behavior:
- apply
- autoescape
- block
- deprecated
- do
- embed
- extends
- flush
- for
- from
- if
- import
- include
- macro
- sandbox
- set
- use
- verbatim
- with
- abs
- batch
- capitalize
- column
- convert_encoding
- date
- date_modify
- default
- escape
- filter
- first
- format
- join
- json_encode
- keys
- last
- length
- lower
- map
- merge
- nl2br
- number_format
- raw
- reduce
- replace
- reverse
- round
- slice
- sort
- spaceless
- split
- striptags
- title
- trim
- upper
- url_encode
- attribute
- block
- constant
- cycle
- date
- dump
- include
- max
- min
- parent
- random
- range
- source
- template_from_string
Operators help you perform logical, arithmetic, and other operations:
- in
- is
- Math (
+
,-
,/
,%
,//
,\*
,\*\*
) - Logic (
and
,or
,not
,()
,b-and
,b-xor
,b-or
) - Comparisons (
==
,!=
,<
,>
,>=
,<=
, ===,starts with
,ends with
,has some
,has every
,matches
) - Others (.., |, ~, ., [], ?:, ??)
The following are not required for the Twig certification:
- Functions and filters specific to the
symfony/twig-bridge
library, covered in Symfony certification. - Any filters, functions, or tags provided by extensions like
MarkdownExtension
,StringExtension
,IntlExtension
,HtmlExtension
,CacheExtension
,CssInlinerExtension
, andInkyExtension
are not included.
Ready to get certified? Buy a voucher and register here.
For more information, read this comprehensive article.
Interested in training with our team? Contact us!