install by composer
composer require cadot.eu/twigbundle
verify in bundles.php the line
Cadoteu\TwigBundle\CadoteuTwigBundle::class => ['all' => true]
twig function | parameters | description |
---|---|---|
TBdd | string | return die and dump of symfony |
TBgetenv | string | return variable from $_ENV |
twig function | parameters | description |
---|---|---|
TBsanitize | string | return a string clean, without space, character... |
TBobjetProperties | object | return array of properties object |
TBtxtfromhtml | string | return a string from html decoded and cleaned |
TBJsonPretty | json | return a pretty string from json |
TBuploadmax | return the lowest file upload from php and server | |
TBimgToBase64 | $url,$inline=false | return a immage code in base64, inline option |
twig function | parameters | description |
---|---|---|
TBjsondecode | return a array of json | |
TBfaker | string for options | return faker, TBfaker('sentences',3) |
TBfakeren | string for options | return faker English |
./vendor/phpunit/phpunit/phpunit tests/functionTest.php