kinetis / views
Engine-neutral view rendering for Kinetis controllers, with safe logical view names, HTML responses, and asset URLs.
Requires
- php: ^8.4
- kinetis/framework: ^1.9.0
Requires (Dev)
- infection/infection: ^0.35.0
- phpstan/phpstan: ^2.2.8
- phpunit/phpunit: ^13.3.3
- vimeo/psalm: ^6.17
Suggests
None
Provides
None
Conflicts
None
Replaces
None
README
kinetis/views
Engine-neutral view rendering for Kinetis
Part of Kinetis, a non-blocking PHP framework for API-first applications, developed in the kinetis-dev/kinetis monorepo.
The engine-neutral view contract for Kinetis.
Controllers inject Kinetis\Views\Views and render an extensionless logical
name; an application chooses one of kinetis/views-php,
kinetis/views-latte, or kinetis/views-twig at bootstrap.
return $this->views->response('articles/index', ['articles' => $articles]);
The package also provides engine-neutral views:warm and views:clear
commands; the selected adapter owns the actual cache behavior. See the
views documentation for setup, the
asset() helper, cache deployment, escaping, and persistent-worker guidance.
License
MIT — see LICENSE.