Yii Framework 34k+
  • News
  • Guide
  • API
  • Wiki
  • Forum
  • Community
    • Places
    • Members
    • Hall of Fame
    • Badges
  • More
    • Learn
    • Books
    • Resources
    • Develop
    • Download Yii
    • Extensions
    • Report an Issue
    • Report a Security Issue
    • Contribute to Yii
    • Donate
    • About
    • Release Cycle
    • License
    • Team
    • Official Logos and Design
Login

Yii HTML 4.2

Jun 5, 2026

Yii HTML version 4.2.0 was released. In this version:

  • Add beforeInput() and afterInput() methods to abstract BooleanInputTag, extended by Radio and Checkbox
  • Add beforeCheckbox() and afterCheckbox() methods to CheckboxList, and beforeRadio() and afterRadio() methods to RadioList

Yii HTML 4.1

May 19, 2026

Yii HTML version 4.1.0 was released. In this version:

  • Add test helper functions for controlling HTML ID generation

Yii HTML 4

Mar 18, 2026

Yii HTML version 4 was released. In this version:

  • Allow passing int, float and null as tag content
  • Throw LogicException in Tag::id() when id is empty string
  • Remove tag attributes sorting
  • Make all CheckboxItem and RadioItem properties required

Read more

Yii HTML 3.13

Mar 13, 2026

Yii HTML version 3.13.0 was released. In this version:

  • Added $attributes parameter to Html::li() method
  • Deprecateed static constructors such as TagName::tag() in favor of new TagName()
  • Enhanced RadioList::addRadioWrapClass() method for cleaner class addition
  • Explicitly imported classes and constants in "use" section

Yii HTML 3.12

Dec 13, 2025

Yii HTML version 3.12.0 was released. In this version:

  • Add Tag::addStyle() and Tag::removeStyle() methods
  • Add Color class, Html::color() and Input::color() methods
  • Add PHP 8.5 support
  • Minor refactor RadioList::renderUncheckInput() and CheckboxList::renderUncheckInput() methods

Yii HTML 3.11

Jun 10, 2025

Version 3.11 of Yii HTML package is released. Here are the list of improvements and fixes included in the new version:

  • added classes for Code and Pre tags, Html::code() and Html::pre() methods;
  • added psalm type OptionsData in Select class;
  • explicitly marked parameters as nullable.

Yii HTML 3.10

Apr 3, 2025

Version 3.10 of Yii HTML package is released. Here are the list of improvements and fixes included in the new version:

  • made $content parameter optional in Button factories;
  • allowed to pass null to Select::value() method;
  • render loading attribute before src;
  • changed PHP constraint in composer.json to 8.1 - 8.4;

Read more

Yii Form 1.4

Mar 27, 2025

Version 1.4 of Yii Form package is released.

  • Change PHP constraint in composer.json to 8.1 - 8.4.
  • Improve "Bootstrap 5 Horizontal" theme for checkbox.
  • In PartsFeild class change $beforeInput and $afterInput properties' scope to protected.
  • Suppress all extra HTML for "Hidden" field.

Yii HTML 3.9

Nov 29, 2024

Version 3.9 of Yii HTML package is released. There is one improvement:

  • added backed enumeration value support to Html::addCssClass(), Tag::addClass() and Tag::class() methods.

Yii Form 1.3

Oct 30, 2024

Version 1.3 of Yii Form package is released.

  • Added CheckboxList methods:
    • checkboxWrapTag(),
    • checkboxWrapAttributes(),
    • checkboxWrapClass(),

Read more

Yii HTML 3.8

Oct 29, 2024

Version 3.8 of Yii HTML package is released. There are some improvements:

  • added optional wrap parameter to BooleanInputTag::label() method that controls whether to wrap input tag with label tag or place them aside;
  • added CheckboxList::checkboxLabelWrap() and RadioList::radioLabelWrap() methods;
  • added 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();
  • added non-empty-string psalm type of Html::generateId() method result;

Read more

Yii Form 1.2

Oct 9, 2024

Version 1.2 of Yii Form package is released.

In this version added Checkbox::labelPlacement() method and Checkbox::enclosedByLabel() method marked as deprecated.

Yii Form 1.1

Sep 26, 2024

Version 1.1 of Yii Form package is released.

In this version added backed enumeration value support to Select field.

Yii HTML 3.7

Sep 18, 2024

Version 3.7 of Yii HTML package is released. There are some improvements:

  • added methods Script::nonce() and Script::getNonce() for CSP;
  • added backed enumeration value support to Select tag.

Yii Form 1.0

Aug 26, 2024

First release of Yii Form package was done. It provides a set of widgets to help with dynamic server-side generation of HTML forms. The following widgets are available out of the box:

  • input fields: Checkbox, CheckboxList, Date, DateTimeLocal, Email, File, Hidden, Image, Number, Password, RadioList, Range, Select, Telephone, Text, Textarea, Time, Url;
  • buttons: Button, ResetButton, SubmitButton;
  • group widgets: ButtonGroup, Fieldset.
  • other: ErrorSummary.

General usage:

use Yiisoft\Form\PureField\Field;

echo Field::text('firstName', theme: 'horizontal')
  ->label('First Name')
  ->autofocus();
echo Field::text('lastName', theme: 'horizontal')
  ->label('Last Name');
echo Field::select('sex')
  ->label('Sex')
  ->optionsData(['m' => 'Male', 'f' => 'Female'])
  ->prompt('—');
echo Field::number('age')
  ->label('Age')
  ->hint('Please enter your age.');
echo Field::submitButton('Submit')
  ->buttonClass('primary');

Yii HTML 3.6

Aug 23, 2024

Version 3.6 of Yii HTML package is released. There are some improvements and fixes:

  • Throw InvalidArgumentException in Html::renderAttribute() when attribute name is empty or contains forbidden symbols.
  • Add Stringable and array values support to textarea tag.
  • Add backed enumeration value support to CheckboxList and RadioList widgets.
  • Fix output of null value attributes in Html::renderTagAttributes().

Yii HTML 3.5

Jul 11, 2024

Version 3.5 of Yii HTML package is released. There are some improvements:

  • added class for tag hr and method Html::hr();
  • added support for multiple elements in aria-describedby attribute.

Yii HTML 3.4

Dec 26, 2023

Version 3.1 of Yii HTML package is released.

In this version add ability set attributes for label of items in widgets CheckboxList and RadioList.

Yii HTML 3.3

Dec 1, 2023

Version 3.3 of Yii HTML package is released. There are some improvements and fixes:

  • added class for tag html and method Html::html();
  • replaced constant PHP_EOL to "\n";
  • don't add "class" attribute in Html::addCssClass() if passed array contains null classes only.

Yii HTML 3.2

Nov 21, 2023

Version 3.2 of Yii HTML package is released. There are some improvements and fixes:

  • added $attributes parameter to Html::ul() and Html::ol();
  • allowed pass null as class to Html::addCssClass(), nulled classes will be ignored;
  • fixed loss of keys for named class in Html::addCssClass() when class in passed options is a string.
  • «
  • 1
  • 2
  • »
Get notified of news as soon as they are available using our RSS Feed.

Years

  • 2026 (43)
  • 2025 (92)
  • 2024 (80)
  • 2023 (90)
  • 2022 (82)
  • 2021 (101)
  • 2020 (64)
  • 2019 (75)
  • 2018 (32)
  • 2017 (35)
  • 2016 (30)
  • 2015 (9)
  • 2014 (6)
  • 2013 (11)
  • 2012 (14)
  • 2011 (10)
  • 2010 (10)
  • 2009 (23)
  • 2008 (5)

Popular Tags

  • yii3 383
  • extensions 233
  • release 109
  • yii2 73
  • debug 30
  • view 28
  • html 25
  • auth client 23
  • bootstrap 21
  • redis 20
  • Yii 1.1
  • Guide
  • API
  • Wiki
  • Yii 2
  • Guide
  • API
  • Wiki
  • Yii3
  • Guide
  • API
  • Cookbook
  • Terms of service
  • License
  • Contact Us
  • Supported by
  • Your donations
  • JetBrains logo
  • © 2008 - 2026 Yii (Website Source Code)