plates

Native PHP template system

Github星跟蹤圖

Plates

NOTE: V4 docs are currently a work in progress. Contributions are welcome.

Maintainer
Source Code
Latest Version
Software License
Build Status
Coverage Status
Quality Score
Total Downloads

Plates is a native PHP template system that's fast, easy to use and easy to extend. It's inspired by the excellent Twig template engine and strives to bring modern template language functionality to native PHP templates. Plates is designed for developers who prefer to use native PHP templates over compiled template languages, such as Twig or Blade.

Highlights

  • Native PHP templates, no new syntax to learn
  • Plates is a template system, not a template language
  • Plates encourages the use of existing PHP functions and conventions
  • Increase code reuse with template layouts and inheritance
  • Template folders for grouping templates into namespaces
  • Data sharing across templates
  • Preassign data to specific templates
  • Built-in escaping helpers
  • Simple design crafted for extendability - most features are built as extensions
  • Everything is customizable, don't like the behavior of something, you can change it
  • Composable naming strategies allowing relative templates, folders, and dynamic base paths.
  • Framework-agnostic, will work with any project
  • Decoupled design makes templates easy to test
  • Supports non-php file rendering for img or svg files to include in your templates.
  • Composer ready and PSR-2 compliant

Installation

Plates is available via Composer:

composer require league/plates:v4.0.0-alpha

Documentation

Full documentation can be found at platesphp.com.

Testing

make test

Contributing

Please see CONTRIBUTING for details.

Security

If you discover any security related issues, please email rj@bighead.net instead of using the issue tracker.

Credits

License

The MIT License (MIT). Please see License File for more information.

主要指標

概覽
名稱與所有者thephpleague/plates
主編程語言PHP
編程語言PHP (語言數: 2)
平台
許可證MIT License
所有者活动
創建於2013-07-12 03:15:17
推送於2024-11-04 13:44:22
最后一次提交
發布數20
最新版本名稱v3.6.0 (發布於 )
第一版名稱1.0.8 (發布於 )
用户参与
星數1.5k
關注者數63
派生數181
提交數273
已啟用問題?
問題數179
打開的問題數18
拉請求數86
打開的拉請求數11
關閉的拉請求數43
项目设置
已啟用Wiki?
已存檔?
是復刻?
已鎖定?
是鏡像?
是私有?