yiisoft/html
Yii HTML is a PHP library for safe, dynamic server-side HTML generation. It provides classes for common HTML tags, a CustomTag builder, widgets like ButtonGroup/CheckboxList/RadioList, automatic content encoding with NoEncode, and an Html helper API.
int, float and null as tag content (@vjik)LogicException in Tag::id() when id is empty string (@razvbir)CheckboxItem and RadioItem properties required (@vjik)$options parameter to $attributes in Html::addCssClass(), Html::removeCssClass(),
Html::addCssStyle() and Html::removeCssStyle() methods (@vjik)$attributes parameter to Html::li() method (@gauravkumar2525)TagName::tag() in favor of new TagName() (@razvbir)RadioList::addRadioWrapClass() method for cleaner class addition (@vjik)Code and Pre tags, Html::code() and Html::pre() methods (@FrankiFixx)OptionsData in Select class (@vjik)composer.json to 8.1 - 8.4 (@vjik)$content parameter optional in Button factories (@FrankiFixx)null to Select::value() method (@vjik)loading attribute before src (@samdark)Html::addCssClass(), Tag::addClass() and Tag::class()
methods (@terabytesoftw)wrap parameter to BooleanInputTag::label() method that controls whether to wrap input tag
with label tag or place them aside (@vjik)CheckboxList::checkboxLabelWrap() and RadioList::radioLabelWrap() methods (@vjik)CheckboxList::checkboxWrapTag(), CheckboxList::checkboxWrapAttributes(), CheckboxList::checkboxWrapClass(),CheckboxList::addCheckboxWrapClass(), RadioList::radioWrapTag(), RadioList::radioWrapAttributes(),
RadioList::radioWrapClass() and RadioList::addRadioWrapClass() (@vjik)non-empty-string psalm type of Html::generateId() method result (@vjik)non-empty-string|null psalm type of Tag::id() method parameter (@vjik)Script::nonce() and Script::getNonce() for CSP (@Gerych1984, @vjik)Select tag (@vjik)InvalidArgumentException in Html::renderAttribute() when attribute name is empty or contains
forbidden symbols (@es-sayers, @vjik)Stringable and array values support to textarea tag (@vjik)CheckboxList and RadioList widgets (@vjik)null value attributes in Html::renderTagAttributes() (@es-sayers)hr and method Html::hr() (@abdulmannans)aria-describedby attribute (@arogachev)CheckboxList and RadioList (@vjik)$attributes parameter to Html::ul() and Html::ol() (@AmolKumarGupta)null as class to Html::addCssClass(), nulled classes will be ignored (@vjik)Html::addCssClass() when class in passed options is a string (@vjik)$attributes parameter to Html::img() (@alien-art)small and method Html::small() (@dood-)yiisoft/arrays version ^3.0 (@vjik)loading() method to Img tag (@jacobbudin)yiisoft/arrays version to ^2.0 (@vjik)Tag::class() and rename Tag::replaceClass() to Tag::class() (@vjik)Html::fileInput() and Input::file(), rename Input::fileControl() to Input::file() (@vjik)Tag class: remove attributes() method and rename replaceAttributes() to attributes() (@vjik)Range class: remove outputAttributes() method and rename replaceOutputAttributes()
to outputAttributes() (@vjik)File class: remove uncheckInputAttributes() method and rename replaceUncheckInputAttributes()
to uncheckInputAttributes() (@vjik)ButtonGroup class: remove buttonAttributes() method and rename replaceButtonAttributes()
to buttonAttributes() (@vjik)CheckboxList: remove individualInputAttributes() and checkboxAttributes() methods,
rename replaceIndividualInputAttributes() to individualInputAttributes() and replaceCheckboxAttributes()
to checkboxAttributes() (@vjik)RadioList class: remove individualInputAttributes() and radioAttributes() methods,
rename replaceIndividualInputAttributes() to individualInputAttributes() and replaceRadioAttributes()
to radioAttributes() (@vjik)NoEncodeStringableInterface extend from Stringable interface (@vjik)ButtonGroup widget (@vjik)Tag::addAttributes(), ButtonGroup::addButtonAttributes(), RadioList::addRadioAttributes(),
RadioList::addIndividualInputAttributes(), CheckboxList::addCheckboxAttributes(),
CheckboxList::addIndividualInputAttributes(), File::addUncheckInputAttributes(), Range::addOutputAttributes() and
deprecate Tag::attributes(), ButtonGroup::buttonAttributes(), RadioList::radioAttributes(),
RadioList::individualInputAttributes(), CheckboxList::checkboxAttributes(),
CheckboxList::individualInputAttributes(), File::uncheckInputAttributes(), Range::outputAttributes() (@vjik)Tag::addClass() and deprecate Tag::class() (@vjik)enctypeApplicationXWwwFormUrlencoded(), enctypeMultipartFormData() and enctypeTextPlain()
to Form tag class (@vjik)Body, Article, Section, Nav, Aside, Hgroup, Header, Footer, Address
and methods Html::body(), Html::article(), Html::section(), Html::nav(), Html::aside(), Html::hgroup(),
Html::header(), Html::footer(), Html::address() (soodssr)Form and method Html::form() (vjik)File for an input tag with type file and methods Html::file() and
Input::fileControl() (vjik)Datalist and method Html::datalist() (vjik)Range and methods Html::range(),
Input::range() (vjik)ButtonGroup (vjik)Tag::unionAttributes() that available for all tags (vjik)Legend, class for tag Fieldset, methods Html::legend() and Html::fieldset() (vjik)HtmlAttributes, too obsessive for package users (vjik)$attributes to methods Html::input(), Html::buttonInput(), Html::submitInput()
and Html::resetInput() (vjik)Select::optionsData() (vjik)Select::optionsData() (vjik)CheckboxList::name() and RadioList::name() (vjik)How can I help you explore Laravel packages today?