APP_PATH
APP_PATH = dirname(realpath(GK_PATH)) . DS . 'Application' . DS
App |
BaconQrCode |
Endroid |
GK |
Medoo |
Monolog |
MyCLabs |
PHPMailer |
Psr |
Symfony |
Twig |
Whoops |
Zxing |
Twig_CacheInterface | Interface implemented by cache classes. |
Twig_ExistsLoaderInterface | Empty interface for Twig 1.x compatibility. |
Twig_Extension_GlobalsInterface | Enables usage of the deprecated Twig_Extension::getGlobals() method. |
Twig_Extension_InitRuntimeInterface | Enables usage of the deprecated Twig_Extension::initRuntime() method. |
Twig_ExtensionInterface | Interface implemented by extension classes. |
Twig_LoaderInterface | Interface all loaders must implement. |
Twig_NodeCaptureInterface | Represents a node that captures any nested displayable nodes. |
Twig_NodeOutputInterface | Represents a displayable node in the AST. |
Twig_NodeVisitorInterface | Twig_NodeVisitorInterface is the interface the all node visitor classes must implement. |
Twig_RuntimeLoaderInterface | Creates runtime implementations for Twig elements (filters/functions/tests). |
Twig_Sandbox_SecurityPolicyInterface | Interfaces that all security policy classes must implements. |
Twig_SourceContextLoaderInterface | Empty interface for Twig 1.x compatibility. |
Twig_TokenParserInterface | Interface implemented by token parsers. |
QrReader | |
Twig_BaseNodeVisitor | Twig_BaseNodeVisitor can be used to make node visitors compatible with Twig 1.x and 2.x. |
Twig_Cache_Filesystem | Implements a cache on the filesystem. |
Twig_Cache_Null | Implements a no-cache strategy. |
Twig_Compiler | Compiles a node to PHP code. |
Twig_ContainerRuntimeLoader | Lazily loads Twig runtime implementations from a PSR-11 container. |
Twig_Environment | Stores the Twig configuration. |
Twig_Error | Twig base exception. |
Twig_Error_Loader | Exception thrown when an error occurs during template loading. |
Twig_Error_Runtime | Exception thrown when an error occurs at runtime. |
Twig_Error_Syntax | Exception thrown when a syntax error occurs during lexing or parsing of a template. |
Twig_ExpressionParser | Parses expressions. |
Twig_Extension | |
Twig_Extension_Core | |
Twig_Extension_Debug | |
Twig_Extension_Escaper | |
Twig_Extension_Optimizer | |
Twig_Extension_Profiler | |
Twig_Extension_Sandbox | |
Twig_Extension_Staging | Used by Twig_Environment as a staging area. |
Twig_Extension_StringLoader | |
Twig_ExtensionSet | |
Twig_FactoryRuntimeLoader | Lazy loads the runtime implementations for a Twig element. |
Twig_FileExtensionEscapingStrategy | Default autoescaping strategy based on file names. |
Twig_Filter | Represents a template filter. |
Twig_Function | Represents a template function. |
Twig_Lexer | Lexes a template string. |
Twig_Loader_Array | Loads a template from an array. |
Twig_Loader_Chain | Loads templates from other loaders. |
Twig_Loader_Filesystem | Loads template from the filesystem. |
Twig_Markup | Marks a content as safe. |
Twig_Node | Represents a node in the AST. |
Twig_Node_AutoEscape | Represents an autoescape node. |
Twig_Node_Block | Represents a block node. |
Twig_Node_BlockReference | Represents a block call node. |
Twig_Node_Body | Represents a body node. |
Twig_Node_CheckSecurity | Represents a node in the AST. |
Twig_Node_Deprecated | Represents a deprecated node. |
Twig_Node_Do | Represents a do node. |
Twig_Node_Embed | Represents an embed node. |
Twig_Node_Expression | Abstract class for all nodes that represents an expression. |
Twig_Node_Expression_Array | Abstract class for all nodes that represents an expression. |
Twig_Node_Expression_AssignName | Abstract class for all nodes that represents an expression. |
Twig_Node_Expression_Binary | Abstract class for all nodes that represents an expression. |
Twig_Node_Expression_Binary_Add | Abstract class for all nodes that represents an expression. |
Twig_Node_Expression_Binary_And | Abstract class for all nodes that represents an expression. |
Twig_Node_Expression_Binary_BitwiseAnd | Abstract class for all nodes that represents an expression. |
Twig_Node_Expression_Binary_BitwiseOr | Abstract class for all nodes that represents an expression. |
Twig_Node_Expression_Binary_BitwiseXor | Abstract class for all nodes that represents an expression. |
Twig_Node_Expression_Binary_Concat | Abstract class for all nodes that represents an expression. |
Twig_Node_Expression_Binary_Div | Abstract class for all nodes that represents an expression. |
Twig_Node_Expression_Binary_EndsWith | Abstract class for all nodes that represents an expression. |
Twig_Node_Expression_Binary_Equal | Abstract class for all nodes that represents an expression. |
Twig_Node_Expression_Binary_FloorDiv | Abstract class for all nodes that represents an expression. |
Twig_Node_Expression_Binary_Greater | Abstract class for all nodes that represents an expression. |
Twig_Node_Expression_Binary_GreaterEqual | Abstract class for all nodes that represents an expression. |
Twig_Node_Expression_Binary_In | Abstract class for all nodes that represents an expression. |
Twig_Node_Expression_Binary_Less | Abstract class for all nodes that represents an expression. |
Twig_Node_Expression_Binary_LessEqual | Abstract class for all nodes that represents an expression. |
Twig_Node_Expression_Binary_Matches | Abstract class for all nodes that represents an expression. |
Twig_Node_Expression_Binary_Mod | Abstract class for all nodes that represents an expression. |
Twig_Node_Expression_Binary_Mul | Abstract class for all nodes that represents an expression. |
Twig_Node_Expression_Binary_NotEqual | Abstract class for all nodes that represents an expression. |
Twig_Node_Expression_Binary_NotIn | Abstract class for all nodes that represents an expression. |
Twig_Node_Expression_Binary_Or | Abstract class for all nodes that represents an expression. |
Twig_Node_Expression_Binary_Power | Abstract class for all nodes that represents an expression. |
Twig_Node_Expression_Binary_Range | Abstract class for all nodes that represents an expression. |
Twig_Node_Expression_Binary_StartsWith | Abstract class for all nodes that represents an expression. |
Twig_Node_Expression_Binary_Sub | Abstract class for all nodes that represents an expression. |
Twig_Node_Expression_BlockReference | Represents a block call node. |
Twig_Node_Expression_Call | Abstract class for all nodes that represents an expression. |
Twig_Node_Expression_Conditional | Abstract class for all nodes that represents an expression. |
Twig_Node_Expression_Constant | Abstract class for all nodes that represents an expression. |
Twig_Node_Expression_Filter | Abstract class for all nodes that represents an expression. |
Twig_Node_Expression_Filter_Default | Returns the value or the default value when it is undefined or empty. |
Twig_Node_Expression_Function | Abstract class for all nodes that represents an expression. |
Twig_Node_Expression_GetAttr | Abstract class for all nodes that represents an expression. |
Twig_Node_Expression_MethodCall | Abstract class for all nodes that represents an expression. |
Twig_Node_Expression_Name | Abstract class for all nodes that represents an expression. |
Twig_Node_Expression_NullCoalesce | Abstract class for all nodes that represents an expression. |
Twig_Node_Expression_Parent | Represents a parent node. |
Twig_Node_Expression_TempName | Abstract class for all nodes that represents an expression. |
Twig_Node_Expression_Test | Abstract class for all nodes that represents an expression. |
Twig_Node_Expression_Test_Constant | Checks if a variable is the exact same value as a constant. |
Twig_Node_Expression_Test_Defined | Checks if a variable is defined in the current context. |
Twig_Node_Expression_Test_Divisibleby | Checks if a variable is divisible by a number. |
Twig_Node_Expression_Test_Even | Checks if a number is even. |
Twig_Node_Expression_Test_Null | Checks that a variable is null. |
Twig_Node_Expression_Test_Odd | Checks if a number is odd. |
Twig_Node_Expression_Test_Sameas | Checks if a variable is the same as another one (=== in PHP). |
Twig_Node_Expression_Unary | Abstract class for all nodes that represents an expression. |
Twig_Node_Expression_Unary_Neg | Abstract class for all nodes that represents an expression. |
Twig_Node_Expression_Unary_Not | Abstract class for all nodes that represents an expression. |
Twig_Node_Expression_Unary_Pos | Abstract class for all nodes that represents an expression. |
Twig_Node_Flush | Represents a flush node. |
Twig_Node_For | Represents a for node. |
Twig_Node_ForLoop | Internal node used by the for node. |
Twig_Node_If | Represents an if node. |
Twig_Node_Import | Represents an import node. |
Twig_Node_Include | Represents an include node. |
Twig_Node_Macro | Represents a macro node. |
Twig_Node_Module | Represents a module node. |
Twig_Node_Print | Represents a node that outputs an expression. |
Twig_Node_Sandbox | Represents a sandbox node. |
Twig_Node_SandboxedPrint | Twig_Node_SandboxedPrint adds a check for the __toString() method when the variable is an object and the sandbox is activated. |
Twig_Node_Set | Represents a set node. |
Twig_Node_Spaceless | Represents a spaceless node. |
Twig_Node_Text | Represents a text node. |
Twig_Node_With | Represents a nested "with" scope. |
Twig_NodeTraverser | Twig_NodeTraverser is a node traverser. |
Twig_NodeVisitor_Escaper | Twig_NodeVisitor_Escaper implements output escaping. |
Twig_NodeVisitor_Optimizer | Twig_NodeVisitor_Optimizer tries to optimizes the AST. |
Twig_NodeVisitor_SafeAnalysis | Twig_BaseNodeVisitor can be used to make node visitors compatible with Twig 1.x and 2.x. |
Twig_NodeVisitor_Sandbox | Twig_NodeVisitor_Sandbox implements sandboxing. |
Twig_Parser | Default parser implementation. |
Twig_Profiler_Dumper_Base | |
Twig_Profiler_Dumper_Blackfire | |
Twig_Profiler_Dumper_Html | |
Twig_Profiler_Dumper_Text | |
Twig_Profiler_Node_EnterProfile | Represents a profile enter node. |
Twig_Profiler_Node_LeaveProfile | Represents a profile leave node. |
Twig_Profiler_NodeVisitor_Profiler | Twig_BaseNodeVisitor can be used to make node visitors compatible with Twig 1.x and 2.x. |
Twig_Profiler_Profile | |
Twig_Sandbox_SecurityError | Exception thrown when a security error occurs at runtime. |
Twig_Sandbox_SecurityNotAllowedFilterError | Exception thrown when a not allowed filter is used in a template. |
Twig_Sandbox_SecurityNotAllowedFunctionError | Exception thrown when a not allowed function is used in a template. |
Twig_Sandbox_SecurityNotAllowedMethodError | Exception thrown when a not allowed class method is used in a template. |
Twig_Sandbox_SecurityNotAllowedPropertyError | Exception thrown when a not allowed class property is used in a template. |
Twig_Sandbox_SecurityNotAllowedTagError | Exception thrown when a not allowed tag is used in a template. |
Twig_Sandbox_SecurityPolicy | Represents a security policy which need to be enforced when sandbox mode is enabled. |
Twig_SimpleFilter | Represents a template filter. |
Twig_SimpleFunction | Represents a template function. |
Twig_SimpleTest | Represents a template test. |
Twig_Source | Holds information about a non-compiled Twig template. |
Twig_TemplateWrapper | Exposes a template to userland. |
Twig_Test | Represents a template test. |
Twig_Test_IntegrationTestCase | Integration test helper. |
Twig_Test_NodeTestCase | |
Twig_Token | Represents a Token. |
Twig_TokenParser | Base class for all token parsers. |
Twig_TokenParser_AutoEscape | Marks a section of a template to be escaped or not. |
Twig_TokenParser_Block | Marks a section of a template as being reusable. |
Twig_TokenParser_Deprecated | Deprecates a section of a template. |
Twig_TokenParser_Do | Evaluates an expression, discarding the returned value. |
Twig_TokenParser_Embed | Embeds a template. |
Twig_TokenParser_Extends | Extends a template by another one. |
Twig_TokenParser_Filter | Filters a section of a template by applying filters. |
Twig_TokenParser_Flush | Flushes the output to the client. |
Twig_TokenParser_For | Loops over each item of a sequence. |
Twig_TokenParser_From | Imports macros. |
Twig_TokenParser_If | Tests a condition. |
Twig_TokenParser_Import | Imports macros. |
Twig_TokenParser_Include | Includes a template. |
Twig_TokenParser_Macro | Defines a macro. |
Twig_TokenParser_Sandbox | Marks a section of a template as untrusted code that must be evaluated in the sandbox mode. |
Twig_TokenParser_Set | Defines a variable. |
Twig_TokenParser_Spaceless | Remove whitespaces between HTML tags. |
Twig_TokenParser_Use | Imports blocks defined in another template into the current template. |
Twig_TokenParser_With | Creates a nested scope. |
Twig_TokenStream | Represents a token stream. |
Twig_Util_DeprecationCollector | |
Twig_Util_TemplateDirIterator |
twig_array_merge(array|\Traversable $arr1, array|\Traversable $arr2) : array
Merges an array with another one.
{% set items = { 'apple': 'fruit', 'orange': 'fruit' } %} {% set items = items|merge({ 'peugeot': 'car' }) %} {# items now contains { 'apple': 'fruit', 'orange': 'fruit', 'peugeot': 'car' } #}
array|\Traversable | $arr1 | An array |
array|\Traversable | $arr2 | An array |
The merged array
twig_capitalize_string_filter(\Twig_Environment $env, string $string) : string
Returns a capitalized string.
\Twig_Environment | $env | |
string | $string | A string |
The capitalized string
twig_date_converter(\Twig_Environment $env, \DateTimeInterface|string|null $date = null, \DateTimeZone|string|false|null $timezone = null) : \DateTime
Converts an input to a DateTime instance.
{% if date(user.created_at) < date('+2days') %} {# do something #} {% endif %}
\Twig_Environment | $env | |
\DateTimeInterface|string|null | $date | A date or null to use the current time |
\DateTimeZone|string|false|null | $timezone | The target timezone, null to use the default, false to leave unchanged |
A DateTime instance
twig_date_format_filter(\Twig_Environment $env, \DateTimeInterface|\DateInterval|string $date, string|null $format = null, \DateTimeZone|string|false|null $timezone = null) : string
Converts a date to the given format.
{{ post.published_at|date("m/d/Y") }}
\Twig_Environment | $env | |
\DateTimeInterface|\DateInterval|string | $date | A date |
string|null | $format | The target format, null to use the default |
\DateTimeZone|string|false|null | $timezone | The target timezone, null to use the default, false to leave unchanged |
The formatted date
twig_date_modify_filter(\Twig_Environment $env, \DateTimeInterface|string $date, string $modifier) : \DateTimeInterface
Returns a new date object modified.
{{ post.published_at|date_modify("-1day")|date("m/d/Y") }}
\Twig_Environment | $env | |
\DateTimeInterface|string | $date | A date |
string | $modifier | A modifier string |
A new date object
twig_escape_filter(\Twig_Environment $env, mixed $string, string $strategy = 'html', string $charset = null, boolean $autoescape = false) : string
Escapes a string.
\Twig_Environment | $env | |
mixed | $string | The value to be escaped |
string | $strategy | The escaping strategy |
string | $charset | The charset |
boolean | $autoescape | Whether the function is called by the auto-escaping feature (true) or by the developer (false) |
twig_first(\Twig_Environment $env, mixed $item) : mixed
Returns the first element of the item.
\Twig_Environment | $env | |
mixed | $item | A variable |
The first element of the item
twig_include(\Twig_Environment $env, array $context, string|array $template, array $variables = array(), boolean $withContext = true, boolean $ignoreMissing = false, boolean $sandboxed = false) : string
Renders a template.
\Twig_Environment | $env | |
array | $context | |
string|array | $template | The template to render or an array of templates to try consecutively |
array | $variables | The variables to pass to the template |
boolean | $withContext | |
boolean | $ignoreMissing | Whether to ignore missing templates or not |
boolean | $sandboxed | Whether to sandbox the template or not |
The rendered template
twig_join_filter(array $value, string $glue = '', string|null $and = null) : string
Joins the values to a string.
The separators between elements are empty strings per default, you can define them with the optional parameters.
{{ [1, 2, 3]|join(', ', ' and ') }} {# returns 1, 2 and 3 #} {{ [1, 2, 3]|join('|') }} {# returns 1|2|3 #} {{ [1, 2, 3]|join }} {# returns 123 #}
array | $value | An array |
string | $glue | The separator |
string|null | $and | The separator for the last pair |
The concatenated string
twig_last(\Twig_Environment $env, mixed $item) : mixed
Returns the last element of the item.
\Twig_Environment | $env | |
mixed | $item | A variable |
The last element of the item
twig_length_filter(\Twig_Environment $env, mixed $thing) : integer
Returns the length of a variable.
\Twig_Environment | $env | A Twig_Environment instance |
mixed | $thing | A variable |
The length of the value
twig_lower_filter(\Twig_Environment $env, string $string) : string
Converts a string to lowercase.
\Twig_Environment | $env | |
string | $string | A string |
The lowercased string
twig_number_format_filter(\Twig_Environment $env, mixed $number, integer $decimal = null, string $decimalPoint = null, string $thousandSep = null) : string
Number format filter.
All of the formatting options can be left null, in that case the defaults will be used. Supplying any of the parameters will override the defaults set in the environment object.
\Twig_Environment | $env | |
mixed | $number | A float/int/string of the number to format |
integer | $decimal | the number of decimal points to display |
string | $decimalPoint | the character(s) to use for the decimal point |
string | $thousandSep | the character(s) to use for the thousands separator |
The formatted number
twig_random(\Twig_Environment $env, \Traversable|array|integer|float|string $values = null) : mixed
Returns a random value depending on the supplied parameter type: - a random item from a Traversable or array - a random character from a string - a random integer between 0 and the integer parameter.
\Twig_Environment | $env | |
\Traversable|array|integer|float|string | $values | The values to pick a random item from |
when $values is an empty array (does not apply to an empty string which is returned as is)
A random value from the given sequence
twig_reverse_filter(\Twig_Environment $env, array|\Traversable|string $item, boolean $preserveKeys = false) : mixed
Reverses a variable.
\Twig_Environment | $env | |
array|\Traversable|string | $item | An array, a Traversable instance, or a string |
boolean | $preserveKeys | Whether to preserve key or not |
The reversed input
twig_round(integer|float $value, integer|float $precision, string $method = 'common') : integer|float
Rounds a number.
integer|float | $value | The value to round |
integer|float | $precision | The rounding precision |
string | $method | The method to use for rounding |
The rounded number
twig_slice(\Twig_Environment $env, mixed $item, integer $start, integer $length = null, boolean $preserveKeys = false) : mixed
Slices a variable.
\Twig_Environment | $env | |
mixed | $item | A variable |
integer | $start | Start of the slice |
integer | $length | Size of the slice |
boolean | $preserveKeys | Whether to preserve key or not (when the input is an array) |
The sliced variable
twig_source(\Twig_Environment $env, string $name, boolean $ignoreMissing = false) : string
Returns a template content without rendering it.
\Twig_Environment | $env | |
string | $name | The template name |
boolean | $ignoreMissing | Whether to ignore missing templates or not |
The template source
twig_split_filter(\Twig_Environment $env, string $value, string $delimiter, integer $limit = null) : array
Splits the string into an array.
{{ "one,two,three"|split(',') }} {# returns [one, two, three] #} {{ "one,two,three,four,five"|split(',', 3) }} {# returns [one, two, "three,four,five"] #} {{ "123"|split('') }} {# returns [1, 2, 3] #} {{ "aabbcc"|split('', 2) }} {# returns [aa, bb, cc] #}
\Twig_Environment | $env | |
string | $value | A string |
string | $delimiter | The delimiter |
integer | $limit | The limit |
The split string as an array
twig_template_from_string(\Twig_Environment $env, string $template) : \Twig_Template
Loads a template from a string.
{{ include(template_from_string("Hello {{ name }}")) }}
\Twig_Environment | $env | A Twig_Environment instance |
string | $template | A template as a string or object implementing __toString() |
twig_test_empty(mixed $value) : boolean
Checks if a variable is empty.
{# evaluates to true if the foo variable is null, false, or the empty string #} {% if foo is empty %} {# ... #} {% endif %}
mixed | $value | A variable |
true if the value is empty, false otherwise
twig_test_iterable(mixed $value) : boolean
Checks if a variable is traversable.
{# evaluates to true if the foo variable is an array or a traversable object #} {% if foo is iterable %} {# ... #} {% endif %}
mixed | $value | A variable |
true if the value is traversable
twig_title_string_filter(\Twig_Environment $env, string $string) : string
Returns a titlecased string.
\Twig_Environment | $env | |
string | $string | A string |
The titlecased string
twig_upper_filter(\Twig_Environment $env, string $string) : string
Converts a string to uppercase.
\Twig_Environment | $env | |
string | $string | A string |
The uppercased string
twig_var_dump(\Twig_Environment $env, $context, $vars)
\Twig_Environment | $env | |
$context | ||
$vars |