codemonster-ru / razor
Template engine for PHP
Requires
- php: >=8.2
- codemonster-ru/view: ^2.0
Requires (Dev)
- phpstan/phpstan: ^2.1
- phpunit/phpunit: ^9.6 || ^10.5 || ^11.0 || ^12.0
Suggests
None
Provides
None
Conflicts
None
Replaces
None
This package is auto-updated.
Last update: 2026-11-27 17:30:25 UTC
README
Important
This repository is read-only.
Development happens in the Annabel monorepo.
Issues and pull requests should be opened there.
Razor-like template engine for PHP applications.
Razor 2.1 adds registered server-rendered components with typed provider contracts, props, lazy default and named slots, nested composition, and an explicit trusted-HTML boundary.
Get started
Use PHP 8.2 or later and Composer 2.
composer require codemonster-ru/razor
Documentation
Standalone package documentation: docs.codemonster.net/razor
Annabel framework documentation: Annabel getting started guide
Support and contributing
Read the contribution guide before proposing a change. Report vulnerabilities through the security policy.
Licensed under the MIT License.