PackageTrack
Sign in Get early access

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 2026
2018 2019 2020 2021 2022 2023 2024 2025 2026
Release Pre-release

Releases

latest 60 of 89
  1. 3.13.0 22 Feb 2026
    Release notes

    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
    Open source →
    Release notes

    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
    Open source →
  2. 3.12.3 22 Dec 2025
    Release notes

    What's Changed

    • make BaseElement::unless() compatible with Conditionable::unless() by @miken32 in #260

    Full Changelog: 3.12.2...3.12.3

    Open source →
    Release notes

    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

    Open source →
  3. 3.12.2 22 Dec 2025
    Release notes

    What's Changed

    Full Changelog: 3.12.1...3.12.2

    Open source →
    Release notes

    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

    Open source →
  4. 3.12.1 02 Oct 2025
    Release notes

    What's Changed

    New Contributors

    Full Changelog: 3.12.0...3.12.1

    Open source →
    Release notes

    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

    Open source →
  5. 3.12.0 21 Mar 2025
    Release notes

    What's Changed

    New Contributors

    Full Changelog: 3.11.3...3.12.0

    Open source →
    Release notes

    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

    Open source →
  6. 3.11.3 17 Feb 2025
    Release notes

    What's Changed

    Full Changelog: 3.11.2...3.11.3

    Open source →
    Release notes

    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

    Open source →
  7. 3.11.2 05 Feb 2025
    Release notes

    What's Changed

    • Radio buttons with value 0 are incorrectly marked as checked by @acarpio89 in #249

    New Contributors

    Full Changelog: 3.11.1...3.11.2

    Open source →
    Release notes

    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

    Open source →
  8. 3.11.1 18 Oct 2024
    Release notes

    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

    Open source →
    Release notes

    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

    Open source →
  9. 3.11.0 16 Jul 2024
    Release notes

    What's Changed

    New Contributors

    Full Changelog: 3.10.1...3.11.0

    Open source →
    Release notes

    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

    Open source →
  10. 3.10.1 15 Jul 2024
    Release notes

    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

    Open source →
    Release notes

    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

    Open source →
  11. 3.10.0 03 Jul 2024
    Release notes

    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

    Open source →
  12. 3.9.0 25 Apr 2024
    Release notes

    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

    Open source →
  13. 3.8.0 24 Apr 2024
    Release notes

    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

    Open source →
  14. 3.7.0 23 Mar 2024
    Release notes

    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

    Open source →
  15. 3.6.0 08 Mar 2024
    Release notes

    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

    Open source →
  16. 3.5.0 20 Feb 2024

    Nothing published for this version

  17. 3.4.0 05 Jan 2024
    Release notes

    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

    Open source →
  18. 3.3.0 24 Oct 2023
    Release notes

    What's Changed

    • Add documentation for new FormElement::route() method by @miken32 in https://github.com/spatie/laravel-html/pull/190
    • Update .gitattributes by @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

    Open source →
  19. 3.2.2 20 Jul 2023
    Release notes

    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

    Open source →
  20. 3.2.1 24 Jan 2023
    Release notes

    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

    Open source →
  21. 3.2.0 27 Dec 2022
    Release notes
    • Add P class to render paragraphs
    Open source →
  22. 3.1.0 14 Jan 2022
    Release notes
    • Allow Laravel 9
    Open source →
  23. 3.0.0 17 Nov 2021
    Release notes
    • Add compatiblity with PHP 8.1. The only breaking change with v2 is that readonly has been renamed to isReadonly.
    Open source →
  24. 2.30.0 09 Jul 2021
    Release notes
    • Better support for numeric values in attributes
    Open source →
  25. 2.29.0 09 Feb 2021
    Release notes
    • Add target attribute method to links and button
    Open source →
  26. 2.28.1 30 Nov 2020
    Release notes
    • add support for PHP 8
    Open source →
  27. 2.28.0 30 Sep 2020
    Release notes
    • add the disabled method to all elements that support the attribute (#165)
    Open source →
  28. 2.27.0 09 Sep 2020
    Release notes
    • Add support for Laravel 8
    Open source →
  29. 2.26.0 20 Apr 2020
    Release notes
    • Internal refactor to normalize availabel attribute methods
    Open source →
  30. 2.25.0 03 Mar 2020
    Release notes
    • add Laravel 7 support
    Open source →
  31. 2.24.0 24 Sep 2019
    Release notes
    • Added number input
    Open source →
  32. 2.23.0 03 Sep 2019
    Release notes
    • Laravel 6 support
    • Better handling for 0 values in inputs
    • Add range for range inputs
    • Format date and time values
    Open source →
  33. 2.22.1 16 Jul 2019
    Release notes
    • Prevent password fields to be filled
    Open source →
  34. 2.22.0 26 Apr 2019
    Release notes
    • Changed the value parameter in data to an optional parameter
    Open source →
  35. 2.21.0 27 Feb 2019
    Release notes
    • Added Laravel 5.8 support
    • Dropped PHP 7.0 support
    • Dropped Laravel 5.4 support
    • Dropped PHPUnit 6 support
    Open source →
  36. 2.20.1 01 Feb 2019
    Release notes
    • use Arr:: and Str:: functions
    Open source →
  37. 2.20.0 18 Jan 2019
    Release notes
    • Added unless method and magic __call handler (e.g. $input->valueUnless(false, 5))
    • Added size attribute method to Input
    • Added name attribute method to Button
    • Fixed checkbox value repopulation after request
    Open source →
  38. 2.19.9 09 Jan 2019
    Release notes
    • Improve default of tel link
    Open source →
  39. 2.19.8 04 Sep 2018
    Release notes
    • Add support for Laravel 5.7
    Open source →
  40. 2.19.7 30 Apr 2018
    Release notes
    • Allow radio input check "0" value
    Open source →
  41. 2.19.6 30 Apr 2018
    Release notes
    • Correctly prefill form array attributes from the model
    Open source →
  42. 2.19.5 04 Apr 2018
    Release notes
    • Allow null children
    Open source →
  43. 2.19.4 28 Mar 2018
    Release notes
    • Revert comparison function change in 2.19.2
    Open source →
  44. 2.19.3 28 Mar 2018

    Nothing published for this version

  45. 2.19.2 26 Mar 2018
    Release notes
    • Fixed comparison function for selected options in Select
    Open source →
  46. 2.19.1 23 Mar 2018
    Release notes
    • Fixed Html::radio auto-generated id's & checked behaviour
    Open source →
  47. 2.19.0 09 Mar 2018
    Release notes
    • Changed Input::require to accept a boolean value
    Open source →
  48. 2.18.0 02 Mar 2018
    Release notes
    • Added I element class and Html::i factory method
    Open source →
  49. 2.17.0 28 Feb 2018
    Release notes
    • Added Html::value function that's a public method for old
    Open source →
  50. 2.16.0 26 Feb 2018
    Release notes
    • Added Img element class and Html::img factory method
    Open source →
  51. 2.15.1 26 Feb 2018
    Release notes
    • Removed id from CSRF fields
    Open source →
  52. 2.15.0 23 Feb 2018
    Release notes
    • Added Input::date and Input::time
    Open source →
  53. 2.14.0 22 Feb 2018
    Release notes
    • Added Input::disabled
    Open source →
  54. 2.13.1 20 Feb 2018
    Release notes
    • Added Form::novalidate
    Open source →
  55. 2.13.0 20 Feb 2018

    Nothing published for this version

  56. 2.12.1 08 Feb 2018
    Release notes
    • Fixed Laravel 5.6 compatibility
    Open source →
  57. 2.12.0 08 Feb 2018
    Release notes
    • Added Laravel 5.6 compatibility
    • Fixed an issue with checkbox values
    Open source →
  58. 2.11.0 02 Feb 2018
    Release notes
    • Add readonly method to input
    Open source →
  59. 2.10.3 09 Jan 2018
    Release notes
    • Fix __call when using macros
    Open source →
  60. 2.10.2 28 Dec 2017
    Release notes
    • Htmlable elements can now be used in the html() method
    • Array notation is now implicitly converted to dot notation in old (e.g. foo[1] -> foo.1)
    Open source →

Every package, every release, already written down.

The archive is open and free. Watching your own project is what we are building next.

Browse the archive