Skip to content

Releases: yiisoft/html

Version 4.0.0

18 Mar 07:19
Immutable release. Only release title and notes can be modified.
4.0.0
e6f24bc

Choose a tag to compare

  • New #270: Allow passing int, float and null as tag content (@vjik)
  • Chg #221: Throw LogicException in Tag::id() when id is empty string (@razvbir)
  • Chg #234: Remove tag attributes sorting (@FrankiFixx)
  • Chg #267: Make all CheckboxItem and RadioItem properties required (@vjik)
  • Chg #269: Rename $options parameter to $attributes in Html::addCssClass(), Html::removeCssClass(),
    Html::addCssStyle() and Html::removeCssStyle() methods (@vjik)

Full changelog

Version 3.13.0

13 Mar 13:07
Immutable release. Only release title and notes can be modified.
3.13.0
d02c6bd

Choose a tag to compare

  • New #260: Add $attributes parameter to Html::li() method (@gauravkumar2525)
  • Chg #243: Deprecate static constructors such as TagName::tag() in favor of new TagName() (@razvbir)
  • Enh #261: Enhance RadioList::addRadioWrapClass() method for cleaner class addition (@vjik)
  • Enh #263: Explicitly import classes and constants in "use" section (@mspirkov)

Full changelog

Version 3.12.0

13 Dec 03:19
Immutable release. Only release title and notes can be modified.
3.12.0
c9ebbac

Choose a tag to compare

  • New #249: Add Tag::addStyle() and Tag::removeStyle() methods (@vjik)
  • New #252: Add Color class, Html::color() and Input::color() methods (@razvbir)
  • Enh #258: Add PHP 8.5 support (@vjik)
  • Enh #259: Minor refactor RadioList::renderUncheckInput() and CheckboxList::renderUncheckInput() methods (@vjik)

Full changelog

Version 3.11.0

10 Jun 07:28
3.11.0
d63b175

Choose a tag to compare

  • New #237: Add classes for Code and Pre tags, Html::code() and Html::pre() methods (@FrankiFixx)
  • Enh #246: Add psalm type OptionsData in Select class (@vjik)
  • Bug #245: Explicitly marking parameters as nullable (@Tigrov)

Version 3.10.0

03 Apr 13:41
3.10.0
c8d38e1

Choose a tag to compare

  • Chg #240, #242: Change PHP constraint in composer.json to 8.1 - 8.4 (@vjik)
  • Enh #223: Make $content parameter optional in Button factories (@FrankiFixx)
  • Enh #244: Allow to pass null to Select::value() method (@vjik)
  • Bug #232: Render loading attribute before src (@samdark)
  • Bug #242: Fix the nullable parameter declarations for compatibility with PHP 8.4 (@vjik)

Version 3.9.0

29 Nov 08:46
3.9.0
037b125

Choose a tag to compare

  • Enh #230: Add backed enumeration value support to Html::addCssClass(), Tag::addClass() and Tag::class()
    methods (@terabytesoftw)

Version 3.8.0

29 Oct 08:10
3.8.0
e550e78

Choose a tag to compare

  • New #224: Add optional wrap parameter to BooleanInputTag::label() method that controls whether to wrap input tag
    with label tag or place them aside (@vjik)
  • New #225: Add CheckboxList::checkboxLabelWrap() and RadioList::radioLabelWrap() methods (@vjik)
  • New #227, #228: Add ability to wrap items in checkbox and radio lists by using methods
    CheckboxList::checkboxWrapTag(), CheckboxList::checkboxWrapAttributes(), CheckboxList::checkboxWrapClass(),
    CheckboxList::addCheckboxWrapClass(), RadioList::radioWrapTag(), RadioList::radioWrapAttributes(),
    RadioList::radioWrapClass() and RadioList::addRadioWrapClass() (@vjik)
  • Enh #220: Add non-empty-string psalm type of Html::generateId() method result (@vjik)
  • Enh #220: Add non-empty-string|null psalm type of Tag::id() method parameter (@vjik)
  • Enh #222: Bump minimal PHP version to 8.1 and refactor (@vjik)

Version 3.7.0

18 Sep 11:49
3.7.0
968aa8b

Choose a tag to compare

  • New #218: Add methods Script::nonce() and Script::getNonce() for CSP (@Gerych1984, @vjik)
  • Enh #219: Add backed enumeration value support to Select tag (@vjik)

Version 3.6.0

23 Aug 08:14
3.6.0
efd53b3

Choose a tag to compare

  • Enh #212: Throw InvalidArgumentException in Html::renderAttribute() when attribute name is empty or contains
    forbidden symbols (@es-sayers, @vjik)
  • Enh #214: Add Stringable and array values support to textarea tag (@vjik)
  • Enh #217: Add backed enumeration value support to CheckboxList and RadioList widgets (@vjik)
  • Bug #208: Fix output of null value attributes in Html::renderTagAttributes() (@es-sayers)

Version 3.5.0

11 Jul 08:10
3.5.0
33d23d3

Choose a tag to compare

  • New #192: Add class for tag hr and method Html::hr() (@abdulmannans)
  • Enh #200: Add support for multiple elements in aria-describedby attribute (@arogachev)