Releases: formr/formr
Releases · formr/formr
1.5.3
1.5.2
- Fixed an issue when adding custom CSS classes to select menus
- Fixed an issue with Bootstrap inline checkboxes
Full Changelog: 1.5.1...1.5.2
1.5.1
1.5.0
Potentially Breaking Changes
- Dropped support for PHP 7.x.
- Submitting HTML in form fields is now disabled by default.
- Wrappers have been rewritten. Everything should be okay, but check your layouts before using in production just in case!
What's Changed
- PHP minimum version is now 8.1.
- Formr no longer allows HTML in form fields as a default behavior.
- Removed several older PHP string and
mcrypt
functions, and replaced them with modern PHP 8 functions. - Added a check to make sure a directory exists before uploading files.
- Added better support for checking if custom classes are being used.
- Removed the Reflection method when checking for custom wrapper classes.
- Rewrote the wrapper instantiation.
- Cleaned up the wrapper classes.
- Cleaned up a bunch of junk and removed a few unused methods.
Added a wrapper for Tailwind CSS
- Formr now has a Tailwind wrapper.
- You must require the
@tailwindcss/forms
plugin in yourtailwind.config.js
file for the wrapper to work properly. - You can find the Tailwind classes inside the Tailwind wrapper trait located at
lib/wrappers/tailwind.php
.
Note
-
I did not add return types or type hints because the code was written under PHP 5, so adding them would basically kill your app because I did a lousy job of creating the methods and properties back in the day.
-
The Bootstrap 3 and 4 wrappers have not been updated as they are obsolete.