Search by

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

This package is auto-updated.

Last update: 2026-11-03 00:30:36 UTC


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 default public/kirana/classes.json.
  • Symfony: register Kirana\Twig\KiranaExtension with the class map's path; kirana('card') in Twig. It reads the file on first use, so cache:clear runs 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.