Html 1.0.0
2021-03-17
1052次浏览
First stable version of Html package was tagged. The package could be used both along with Yii 3 or separately.
It is a handy library to generate HTML dynamically:
<?= Html::p()->class('float-right')->content(
'Powered by ',
Html::a(
'Yii Framework',
'https://www.yiiframework.com/',
['rel' => 'external']
)
) ?>
It has a set of tag classes such as A
, Input
or Select
. All these handle encoding well leaving less possibility for XSS. Moreover, there are compound widgets such as CheckboxList
that make certain markup easier to describe.
For more detailed description and examples, check the README.
Similar to other Yii 3 packages, the quality standard is high: 100% test coverage, 100% mutation score, full Psalm static analysis. Everything running in a GitHub action.
新闻归档
热门标签
- yii3
- 扩展
- 发布
- yii2
- debug
- auth client
- view
- bootstrap
- release
- html
- redis
- apidoc
- Yii 2.0
- Yii 1.1
- mongodb
- mailer
- extensions
- twig
- gii
- queue
- runner
- http 客户端
- console
- validation
- cache
- sphinx
- widget
- hydrator
- translator
- symfonymailer
- db
- http
- log
- error handler
- config
- swiftmailer
- 图书
- imagine
- assets
- i18n
- IDE
- swagger
- elasticsearch
- router
- csrf
- smarty
- definitions
- logging
- fastroute
- user