Skip to content
Oleg Kasyanov edited this page Dec 27, 2019 · 2 revisions

About

mobicms/render (further just Render) is a native PHP template system that's fast, easy to use and easy to extend, and designed for developers who prefer to use native PHP templates over compiled template languages, such as Twig or Smarty.

This package started on the basis of league/plates v.3.3.0, originally created by Jonathan Reinink. The development of the original package went in a direction that was not suitable for our projects where Plates was used, so it was decided to continue development in a separate package.

The purpose of the development was to simplify the source code as much as possible, get rid of the unnecessary and add the missing functionality.

Highlights

  • Native PHP templates, no new syntax to learn
  • Render is a template system, not a template language
  • Render encourages the use of existing PHP functions
  • Increase code reuse with template layouts and inheritance
  • Grouping templates into namespaces
  • Data sharing across templates
  • Preassign data to specific templates
  • Built-in escaping helper
  • Easy to extend using functions and extensions
  • Framework-agnostic, will work with any project
  • Decoupled design makes templates easy to test
  • Composer ready and PSR-12 compliant

Contributing

Contributions are welcome! Please read CONTRIBUTING for details.

This project adheres to a Contributor Code of Conduct. By participating in this project and its community, you are expected to uphold this code.

License

The mobicms/render library is licensed for use under the MIT License (MIT).
Please see LICENSE for more information.

Our links

Clone this wiki locally