What's Changed 🔎
⚠️ Breaking Change This new version requires at least PHP 8.1 or higher.- 🚀 Add caching support, files should not be read every single time a static method is called, especially when doing multiple validations.
- 🛡 Add support for validation against an array of values.
- 🐘 Using the native PHP enums (with the "match" expression ⚡️) for the banned types.
- 🤠 Add support for multi-validation (meaning, validate a provided string is banned in words or usernames for example).
- 🎈 Allow extending banned data.
New Contributors 👏
- @soulshined made their first contribution in #1
Full Changelog: 1.3.0...2.0.0
Enjoy! 🎉 Feel free to share your feedback and suggestions!