spatie/laravel-html
A fluent html builder
3.13.0
8.2M downloads/mo
#1140 most downloaded on Packagist
spatie/laravel-html
What this package is like to depend on
Last release 6 months ago
22 Feb 2026
Release timing varies
gaps range from 2 weeks to 6 months
Most releases are documented
notes for 80 of 89 stable releases
Nothing withdrawn
no release was ever pulled
10 years old
89 releases · first in 2017
4 releases in the last 12 months
see the full history below
Release timeline
89 releases · Jan 2017 to Feb 2026Releases
latest 60 of 89-
3.13.022 Feb 2026Release notes
Open source →What's Changed
- Add Laravel 13 support
- Add PHP 8.5 to test matrix
- Update test dependencies (Pest 4, PHPUnit 12, Testbench 11)
- Fix tests by restoring optional Request injection in Html class
- Remove deprecated PHPUnit 9 attributes from phpunit.xml.dist
Release notes
Open source →What's Changed
- Add Laravel 13 support
- Add PHP 8.5 to test matrix
- Update test dependencies (Pest 4, PHPUnit 12, Testbench 11)
- Fix tests by restoring optional Request injection in Html class
- Remove deprecated PHPUnit 9 attributes from phpunit.xml.dist
-
3.12.322 Dec 2025Release notes
Open source →What's Changed
- make BaseElement::unless() compatible with Conditionable::unless() by @miken32 in https://github.com/spatie/laravel-html/pull/260
Full Changelog: https://github.com/spatie/laravel-html/compare/3.12.2...3.12.3
-
3.12.222 Dec 2025Release notes
Open source →Release notes
Open source →What's Changed
- Document conditional methods by @miken32 in https://github.com/spatie/laravel-html/pull/261
Full Changelog: https://github.com/spatie/laravel-html/compare/3.12.1...3.12.2
-
3.12.102 Oct 2025Release notes
Open source →What's Changed
- Update issue template by @AlexVanderbist in #257
- Add support for multiples requests in the same process by @gtg-bantonio in #258
New Contributors
- @gtg-bantonio made their first contribution in #258
Full Changelog: 3.12.0...3.12.1
Release notes
Open source →What's Changed
- Update issue template by @AlexVanderbist in https://github.com/spatie/laravel-html/pull/257
- Add support for multiples requests in the same process by @gtg-bantonio in https://github.com/spatie/laravel-html/pull/258
New Contributors
- @gtg-bantonio made their first contribution in https://github.com/spatie/laravel-html/pull/258
Full Changelog: https://github.com/spatie/laravel-html/compare/3.12.0...3.12.1
-
3.12.021 Mar 2025Release notes
Open source →What's Changed
- add disabled option to file input by @it-can in https://github.com/spatie/laravel-html/pull/253
New Contributors
- @it-can made their first contribution in https://github.com/spatie/laravel-html/pull/253
Full Changelog: https://github.com/spatie/laravel-html/compare/3.11.3...3.12.0
-
3.11.317 Feb 2025Release notes
Open source →Release notes
Open source →What's Changed
- Laravel 12.x Compatibility by @laravel-shift in https://github.com/spatie/laravel-html/pull/251
Full Changelog: https://github.com/spatie/laravel-html/compare/3.11.2...3.11.3
-
3.11.205 Feb 2025Release notes
Open source →What's Changed
- Radio buttons with value 0 are incorrectly marked as checked by @acarpio89 in #249
New Contributors
- @acarpio89 made their first contribution in #249
Full Changelog: 3.11.1...3.11.2
Release notes
Open source →What's Changed
- Radio buttons with value 0 are incorrectly marked as checked by @acarpio89 in https://github.com/spatie/laravel-html/pull/249
New Contributors
- @acarpio89 made their first contribution in https://github.com/spatie/laravel-html/pull/249
Full Changelog: https://github.com/spatie/laravel-html/compare/3.11.1...3.11.2
-
3.11.118 Oct 2024Release notes
Open source →What's Changed
- fix: Passing null to parameter #1 ($string) of type string is deprecated by @francoism90 in #244
Full Changelog: 3.11.0...3.11.1
Release notes
Open source →What's Changed
- fix: Passing null to parameter #1 ($string) of type string is deprecated by @francoism90 in https://github.com/spatie/laravel-html/pull/244
Full Changelog: https://github.com/spatie/laravel-html/compare/3.11.0...3.11.1
-
3.11.016 Jul 2024Release notes
Open source →What's Changed
- Add some attributes by @francoism90 in #239
New Contributors
- @francoism90 made their first contribution in #239
Full Changelog: 3.10.1...3.11.0
Release notes
Open source →What's Changed
- Add some attributes by @francoism90 in https://github.com/spatie/laravel-html/pull/239
New Contributors
- @francoism90 made their first contribution in https://github.com/spatie/laravel-html/pull/239
Full Changelog: https://github.com/spatie/laravel-html/compare/3.10.1...3.11.0
-
3.10.115 Jul 2024Release notes
Open source →What's Changed
- Fix value omitted when input created with no name by @raveren in #235
- Fix value omitted when input created with no name by @raveren in #236
- Fix for Select and model's relationships by @nikosv in #237
New Contributors
Full Changelog: 3.10.0...3.10.1
Release notes
Open source →What's Changed
- Fix value omitted when input created with no name by @raveren in https://github.com/spatie/laravel-html/pull/235
- Fix value omitted when input created with no name by @raveren in https://github.com/spatie/laravel-html/pull/236
- Fix for Select and model's relationships by @nikosv in https://github.com/spatie/laravel-html/pull/237
New Contributors
- @nikosv made their first contribution in https://github.com/spatie/laravel-html/pull/237
Full Changelog: https://github.com/spatie/laravel-html/compare/3.10.0...3.10.1
-
3.10.003 Jul 2024Release notes
Open source →What's Changed
- Update docs for name attribute by @bskl in https://github.com/spatie/laravel-html/pull/225
- Add Conditionable trait: now
->when()helper is available on all elements by @raveren in https://github.com/spatie/laravel-html/pull/234
Full Changelog: https://github.com/spatie/laravel-html/compare/3.9.0...3.10.0
-
3.9.025 Apr 2024Release notes
Open source →What's Changed
- Add use statement by @bskl in https://github.com/spatie/laravel-html/pull/222
- Add aria helper method by @bskl in https://github.com/spatie/laravel-html/pull/226
Full Changelog: https://github.com/spatie/laravel-html/compare/3.8.0...3.9.0
-
3.8.024 Apr 2024Release notes
Open source →What's Changed
- Add autocomplete attribute helper to the form element by @raveren in https://github.com/spatie/laravel-html/pull/221
- Added support for Htmlable contents in BaseElement by @hemmesdev in https://github.com/spatie/laravel-html/pull/215
- Register Service Provider in Laravel 11 by @gqrdev in https://github.com/spatie/laravel-html/pull/224
- Add name attribute to form element by @bskl in https://github.com/spatie/laravel-html/pull/223
New Contributors
- @hemmesdev made their first contribution in https://github.com/spatie/laravel-html/pull/215
- @gqrdev made their first contribution in https://github.com/spatie/laravel-html/pull/224
Full Changelog: https://github.com/spatie/laravel-html/compare/3.7.0...3.8.0
-
3.7.023 Mar 2024Release notes
Open source →What's Changed
- Fix return value in docs in element-methods.md by @raveren in https://github.com/spatie/laravel-html/pull/218
- Add autocomplete attribute helper to input, select and textarea by @raveren in https://github.com/spatie/laravel-html/pull/219
- Fix link with version in documentation by @fey in https://github.com/spatie/laravel-html/pull/217
New Contributors
- @raveren made their first contribution in https://github.com/spatie/laravel-html/pull/218
- @fey made their first contribution in https://github.com/spatie/laravel-html/pull/217
Full Changelog: https://github.com/spatie/laravel-html/compare/3.6.0...3.7.0
-
3.6.008 Mar 2024Release notes
Open source →What's Changed
- Laravel 11.x Compatibility by @laravel-shift in https://github.com/spatie/laravel-html/pull/214
Full Changelog: https://github.com/spatie/laravel-html/compare/3.5.0...3.6.0
-
3.5.020 Feb 2024Nothing published for this version
-
3.4.005 Jan 2024Release notes
Open source →What's Changed
- Fix docblock to solve phpstan errors when passing an array to html()->div() by @SanderMuller in https://github.com/spatie/laravel-html/pull/210
- Documentation on how to extend the package by @azamtav in https://github.com/spatie/laravel-html/pull/204
New Contributors
- @SanderMuller made their first contribution in https://github.com/spatie/laravel-html/pull/210
- @azamtav made their first contribution in https://github.com/spatie/laravel-html/pull/204
Full Changelog: https://github.com/spatie/laravel-html/compare/3.3.0...3.4.0
-
3.3.024 Oct 2023Release notes
Open source →What's Changed
- Add documentation for new FormElement::route() method by @miken32 in https://github.com/spatie/laravel-html/pull/190
- Update
.gitattributesby @totoprayogo1916 in https://github.com/spatie/laravel-html/pull/194 - Correction to docs re: readonly vs isReadonly by @sgilberg in https://github.com/spatie/laravel-html/pull/195
- Get value from model with casts php native enum by @bskl in https://github.com/spatie/laravel-html/pull/203
New Contributors
- @totoprayogo1916 made their first contribution in https://github.com/spatie/laravel-html/pull/194
- @sgilberg made their first contribution in https://github.com/spatie/laravel-html/pull/195
- @bskl made their first contribution in https://github.com/spatie/laravel-html/pull/203
Full Changelog: https://github.com/spatie/laravel-html/compare/3.2.2...3.3.0
-
3.2.220 Jul 2023Release notes
Open source →What's Changed
- Allow setting a form action to a route by @miken32 in https://github.com/spatie/laravel-html/pull/189
New Contributors
- @miken32 made their first contribution in https://github.com/spatie/laravel-html/pull/189
Full Changelog: https://github.com/spatie/laravel-html/compare/3.2.1...3.2.2
-
3.2.124 Jan 2023Release notes
Open source →What's Changed
- Convert all tests to Pest by @alexmanase in https://github.com/spatie/laravel-html/pull/183
- Laravel 10.x Compatibility by @laravel-shift in https://github.com/spatie/laravel-html/pull/184
New Contributors
- @alexmanase made their first contribution in https://github.com/spatie/laravel-html/pull/183
- @laravel-shift made their first contribution in https://github.com/spatie/laravel-html/pull/184
Full Changelog: https://github.com/spatie/laravel-html/compare/3.2.0...3.2.1
-
3.2.027 Dec 2022 -
3.1.014 Jan 2022 -
3.0.017 Nov 2021Release notes
Open source →- Add compatiblity with PHP 8.1. The only breaking change with v2 is that
readonlyhas been renamed toisReadonly.
- Add compatiblity with PHP 8.1. The only breaking change with v2 is that
-
2.30.009 Jul 2021 -
2.29.009 Feb 2021 -
2.28.130 Nov 2020 -
2.28.030 Sep 2020Release notes
Open source →- add the disabled method to all elements that support the attribute (#165)
-
2.27.009 Sep 2020 -
2.26.020 Apr 2020 -
2.25.003 Mar 2020 -
2.24.024 Sep 2019 -
2.23.003 Sep 2019Release notes
Open source →- Laravel 6 support
- Better handling for
0values in inputs - Add
rangefor range inputs - Format date and time values
-
2.22.116 Jul 2019 -
2.22.026 Apr 2019 -
2.21.027 Feb 2019Release notes
Open source →- Added Laravel 5.8 support
- Dropped PHP 7.0 support
- Dropped Laravel 5.4 support
- Dropped PHPUnit 6 support
-
2.20.101 Feb 2019 -
2.20.018 Jan 2019Release notes
Open source →- Added
unlessmethod and magic__callhandler (e.g.$input->valueUnless(false, 5)) - Added
sizeattribute method toInput - Added
nameattribute method toButton - Fixed checkbox value repopulation after request
- Added
-
2.19.909 Jan 2019 -
2.19.804 Sep 2018 -
2.19.730 Apr 2018 -
2.19.630 Apr 2018 -
2.19.504 Apr 2018 -
2.19.428 Mar 2018 -
2.19.328 Mar 2018Nothing published for this version
-
2.19.226 Mar 2018 -
2.19.123 Mar 2018 -
2.19.009 Mar 2018 -
2.18.002 Mar 2018 -
2.17.028 Feb 2018 -
2.16.026 Feb 2018 -
2.15.126 Feb 2018 -
2.15.023 Feb 2018 -
2.14.022 Feb 2018 -
2.13.120 Feb 2018 -
2.13.020 Feb 2018Nothing published for this version
-
2.12.108 Feb 2018 -
2.12.008 Feb 2018 -
2.11.002 Feb 2018 -
2.10.309 Jan 2018 -
2.10.228 Dec 2017Release notes
Open source →Htmlableelements can now be used in thehtml()method- Array notation is now implicitly converted to dot notation in
old(e.g.foo[1] -> foo.1)