baraja-core / simple-template
Simple PHP templating system for user editable templates.
Installs: 3 498
Dependents: 1
Suggesters: 0
Security: 0
Stars: 1
Watchers: 2
Forks: 0
Open Issues: 1
Requires
- php: ^8.0
Requires (Dev)
- phpstan/extension-installer: ^1.1
- phpstan/phpstan: ^1.0
- phpstan/phpstan-deprecation-rules: ^1.0
- phpstan/phpstan-nette: ^1.0
- phpstan/phpstan-strict-rules: ^1.0
- roave/security-advisories: dev-master
- spaze/phpstan-disallowed-calls: ^2.0
This package is auto-updated.
Last update: 2024-11-09 21:01:45 UTC
README
BRJ organisation
Simple template
Simple PHP templating system for user editable templates.
Idea
Most applications need to render templates that insert safely treated variables.
This library allows you to easily create templates that can be edited by the user. All templates are rendered in a secure manner that prevents security vulnerabilities from being created.
Each template is validated before rendering for the ability to automatically check the initialization of all variables and available data. You can also perform secure validation against test data before saving a new template.
Typical use: editable email templates or SMS messages.