kirana-style / kirana
Kirana for server templates: the class map reader, a Blade directive for Laravel and a Twig function for Symfony.
v0.3.7
2026-10-25 10:11 UTC
Requires
- php: >=8.3
Requires (Dev)
- laravel/framework: ^13.32
- orchestra/testbench-core: ^11.5
- phpunit/phpunit: ~13.3.0 || ~13.4.0
- twig/twig: ^3.30
Suggests
- laravel/framework: for the @kirana Blade directive
- twig/twig: for the kirana() Twig function
Provides
None
Conflicts
None
Replaces
None
README
Kirana for PHP server templates (D-069): reads the class map kirana-style build and kirana-style dev write,
and merges named styles the way sx does.
- Laravel: the service provider is discovered;
@kirana('card', $active ? 'card.active' : null)in Blade.config('kirana.classes')overrides the defaultpublic/kirana/classes.json. - Symfony: register
Kirana\Twig\KiranaExtensionwith the class map's path;kirana('card')in Twig. It reads the file on first use, socache:clearruns before any build. - Anything else:
Kirana\ClassMap::fromFile($path)->classes('card').
composer run coverage runs the tests, the merge vectors included, at 100 % of lines and methods.