Initial commit: apps.prometeysev.ru

This commit is contained in:
root committed 2026-10-22 00:22:57 +03:00
commit 96ccabcd8b
6561 files changed
+1270349

No files matched your search

+14
View File
@@ -0,0 +1,14 @@
<?php
require __DIR__.'/../vendor/autoload.php';
$loader = new Twig_Loader_Array(array(
'uniqid' => 'Hi, I am unique: {{ php_uniqid() }}.',
'floor' => 'And {{ php_floor(7.7) }} is floor of 7.7.',
));
$twig = new Twig_Environment($loader);
$twig->addExtension(new Umpirsky\Twig\Extension\PhpFunctionExtension());
echo $twig->render('uniqid') . PHP_EOL;
echo $twig->render('floor') . PHP_EOL;