Html 1.0.0
2021-03-17
1061次浏览
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
- html
- release
- redis
- apidoc
- Yii 2.0
- Yii 1.1
- mongodb
- mailer
- extensions
- twig
- gii
- queue
- runner
- http 客户端
- console
- validation
- sphinx
- cache
- widget
- translator
- hydrator
- error handler
- db
- symfonymailer
- log
- http
- config
- assets
- swiftmailer
- 图书
- imagine
- csrf
- elasticsearch
- swagger
- IDE
- i18n
- router
- definitions
- fastroute
- logging
- smarty
- user