futurerockstars / latte-php-tokenizer
Transform Latte macro arguments to array
Package info
github.com/futurerockstars/latte-php-tokenizer
pkg:composer/futurerockstars/latte-php-tokenizer
dev-master
2026-10-28 20:32 UTC
Requires
- php: >=7.4.0 <8.0.0
- latte/latte: ^2.10.8
Requires (Dev)
- nette/tester: ^2.4.3
- orisai/coding-standard: ^3.7.0
- phpstan/extension-installer: ^1.3
- phpstan/phpstan: ^1.10
- phpstan/phpstan-deprecation-rules: ^1.1.0
- phpstan/phpstan-strict-rules: ^1.5.0
- staabm/annotate-pull-request-from-checkstyle: ^1.8.0
Suggests
None
Provides
None
Conflicts
None
Replaces
None
This package is not auto-updated.
Last update: 2026-10-29 21:18:10 UTC
README
Splits arguments of a Latte 2 macro into an array of PHP expressions.
Fork of the abandoned h4kuna/latte-php-tokenizer.
use h4kuna\Template\LattePhpTokenizer; // {_'Hello %s', $name} LattePhpTokenizer::toArray($node); // ["'Hello %s'", '$name']
Whitespace outside of string literals is removed from each argument.