Weave Code
Code Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Laravel Html Laravel Package

spatie/laravel-html

Generate HTML in Laravel with a clean, readable API. Build elements dynamically and compose them easily, including form fields that automatically pull values from models, session data, or defaults. Includes a convenient Html facade/alias for quick use.

View on GitHub
Deep Wiki
Context7
3.13.0

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.3

What's Changed

Full Changelog: https://github.com/spatie/laravel-html/compare/3.12.2...3.12.3

3.12.1

What's Changed

New Contributors

Full Changelog: https://github.com/spatie/laravel-html/compare/3.12.0...3.12.1

3.12.0

What's Changed

New Contributors

Full Changelog: https://github.com/spatie/laravel-html/compare/3.11.3...3.12.0

3.11.2

What's Changed

New Contributors

Full Changelog: https://github.com/spatie/laravel-html/compare/3.11.1...3.11.2

3.11.1

What's Changed

Full Changelog: https://github.com/spatie/laravel-html/compare/3.11.0...3.11.1

3.11.0
3.10.1

What's Changed

New Contributors

Full Changelog: https://github.com/spatie/laravel-html/compare/3.10.0...3.10.1

3.10.0

What's Changed

Full Changelog: https://github.com/spatie/laravel-html/compare/3.9.0...3.10.0

3.8.0

What's Changed

New Contributors

Full Changelog: https://github.com/spatie/laravel-html/compare/3.7.0...3.8.0

3.7.0

What's Changed

New Contributors

Full Changelog: https://github.com/spatie/laravel-html/compare/3.6.0...3.7.0

3.4.0

What's Changed

New Contributors

Full Changelog: https://github.com/spatie/laravel-html/compare/3.3.0...3.4.0

3.3.0

What's Changed

New Contributors

Full Changelog: https://github.com/spatie/laravel-html/compare/3.2.2...3.3.0

3.2.2

What's Changed

New Contributors

Full Changelog: https://github.com/spatie/laravel-html/compare/3.2.1...3.2.2

3.2.0
  • Add P class to render paragraphs
2.30.0
  • Better support for numeric values in attributes
3.1.0
  • Allow Laravel 9
3.0.0
  • Add compatiblity with PHP 8.1. The only breaking change with v2 is that readonly has been renamed to isReadonly.
2.29.0
  • Add target attribute method to links and button
2.28.1
  • add support for PHP 8
2.28.0
  • add the disabled method to all elements that support the attribute (#165)
2.27.0
  • Add support for Laravel 8
2.26.0
  • Internal refactor to normalize availabel attribute methods
2.25.0
  • add Laravel 7 support
2.24.0
  • Added number input
2.23.0
  • Laravel 6 support
  • Better handling for 0 values in inputs
  • Add range for range inputs
  • Format date and time values
2.22.1
  • Prevent password fields to be filled
2.22.0
  • Changed the value parameter in data to an optional parameter
2.21.0
  • Added Laravel 5.8 support
  • Dropped PHP 7.0 support
  • Dropped Laravel 5.4 support
  • Dropped PHPUnit 6 support
2.20.1
  • use Arr:: and Str:: functions
2.20.0
  • 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
2.19.9
  • Improve default of tel link
2.19.8
  • Add support for Laravel 5.7
2.19.7
  • Allow radio input check "0" value
2.19.6
  • Correctly prefill form array attributes from the model
2.19.5
  • Allow null children
2.19.4
  • Revert comparison function change in 2.19.2
2.19.2
  • Fixed comparison function for selected options in Select
2.19.1
  • Fixed Html::radio auto-generated id's & checked behaviour
2.19.0
  • Changed Input::require to accept a boolean value
2.18.0
  • Added I element class and Html::i factory method
2.17.0
  • Added Html::value function that's a public method for old
2.16.0
  • Added Img element class and Html::img factory method
2.15.1
  • Removed id from CSRF fields
2.15.0
  • Added Input::date and Input::time
2.14.0
  • Added Input::disabled
2.13.1
  • Added Form::novalidate
2.12.1
  • Fixed Laravel 5.6 compatibility
2.12.0
  • Added Laravel 5.6 compatibility
  • Fixed an issue with checkbox values
2.11.0
  • Add readonly method to input
2.10.3
  • Fix __call when using macros
2.10.2
  • 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)
2.10.1
  • Fixed old values containing 0
2.10.0
  • Added required method to Select
2.9.0
  • Added required method to Textarea
2.8.2
  • Fixed a bug with values that are a "0" string
2.8.1
  • Fixed a bug with values that are a "0" string
2.8.0
  • Added a magic __call method that responds to methods ending with If, so any method can be called with a condition as it's first argument. The method will only be applied if the condition is truthy.
2.7.0
  • Added BaseElement::data for data attributes
2.6.0
  • Added BaseElement::setChildren to replace all children
  • Fixed a bug that didn't select options in optgroups when applying a value
2.5.0
  • Added BaseElement::style for setting the style attribute (with a string or an associative array)
  • Added Html::reset for form reset buttons
2.4.1
  • Nothing changed, but 2.2.0 was accidentally tagged as 2.4.0. This release contains the actual latest version at the time of writing.
2.3.0
  • Added checked and unchecked methods to Input
2.2.0
  • Added Optgroup element
  • Added the ability to create optgroups in Options by passing an array of groups with options
2.1.0
  • Added Html::file and a File element for file inputs
2.0.2
  • Fixed an issue that stripped square brackets from element attributes
2.0.1
  • Fixed the Html facade
2.0.0
  • Minimum requirements have been reduced to PHP 7.0
  • Added a html() helper function that returns an instance of Html
  • Added Macroable to all elements and Html
  • Loosened type hints in method signatures for flexibility
  • Added Html::multiselect method
  • Added Select::multiple method
1.5.0
  • Added class method to Html
1.4.0
  • Added a placeholder method to Textarea
1.3.1
  • Added an empty value to Select::placeholder
1.3.0
  • Added a placeholder method to Select for default empty values
1.2.0
  • Added a Html facade
1.1.1
  • Fixed an issue where html was escaped when you didn't want it to do that, like in buttons and links
1.1.0
  • Added Html::radio
  • Fixed an issue that set the wrong value for a checkbox created with Html::checkbox
  • Fixed a case sensitivity issue with the Textarea class
1.0.0
  • Initial release
Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
davejamesmiller/laravel-breadcrumbs
artisanry/parsedown
christhompsontldr/phpsdk
enqueue/dsn
bunny/bunny
enqueue/test
enqueue/null
enqueue/amqp-tools
milesj/emojibase
bower-asset/punycode
bower-asset/inputmask
bower-asset/jquery
bower-asset/yii2-pjax
laravel/nova
spatie/laravel-mailcoach
spatie/laravel-superseeder
laravel/liferaft
nst/json-test-suite
danielmiessler/sec-lists
jackalope/jackalope-transport