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

Purify Laravel Package

stevebauman/purify

Laravel wrapper for HTMLPurifier to sanitize user HTML safely. Clean strings or arrays via the Purify facade, with optional per-call configuration. Publish a config file, tune allowed tags/attributes, and leverage caching for performance.

View on GitHub
Deep Wiki
Context7
v6.3.2

Added

  • Laravel 13.x Compatibility
v6.3.1

Fixed

v6.3.0

Added

v6.2.1

Added

  • Use CACHE_STORE instead of CACHE_DRIVER default .env cache driver env key name for better Laravel 11 support - ac7436f, 083a8bd
v6.2.0

Added

v6.1.3

Fixed

  • Compatibility decoding previously cached definition files - 35e262b023562bb362e378300b0269b9c1e51dac - #84
v6.1.2

Fixed

  • Properly encode serializer cache definition files for storage in DB - fb5b765 - #81
v6.1.1

Changed

v6.1.0

Added

v6.0.2

Added

  • config method doc to Purify facade (i.e Purify::config())
v6.0.1

Changed

v6.0.0

Added

  • Customizable serializer definition storage for Laravel Vapour support - #51
v5.1.1

Added

  • Laravel 10 support - 639cf2f
v5.1.0

Added

  • Ability to disable caching by setting purify.serializer to null
  • purify:clear command for purging cached HTML Purifier serialized definition files
  • Added blockquote element to default allow list - #60 - fe1db4ad837fee3d5c1a7457e51620e5011a25b0) - Thanks to @austenc
v5.0.1

Changed

v5.0.0

All credit goes to @Propaganistas for this major release. 👏

Removed

  • Lumen Support
  • PHP 7.1-7.3 Support
  • Laravel 5.6-6 Support

Added

  • Support for multiple configurations - #53
  • HTML 5 definitions configured out of the box - #53
  • Ability to easily define your own HTML Purifier definition - #53
  • Default Eloquent cast classes to easily implement sanitization on models - #54
v4.0.1
v4.0.0

Removed

  • Purify::getSettings() method - 093bf29

Fixed

  • storage/app/purify directory is now properly created when publishing the purify configuration file - #29 - 093bf29
v3.0.3

Added

  • Laravel 8.0 support - #40 - 7f99372
v3.0.2

Added

  • Laravel 7.0 support - a313f9b - #32
v3.0.1

Fixed

  • Defer loading purify - 96cec18
  • Remove storage directory check and creation to prevent root package install issues - #11 - 5f3d4da
v3.0.0

Added

  • Laravel 6.0 compatibility

Changed

  • Requirement of PHP >= 7.1 and Laravel >= 5.5
v2.0.2

Fixed

  • Bind Purify as a singleton to resolve custom configuration issues - 6012adb - #21
  • Lumen support - 20ed130 - #15
v2.0.1

Fixed

  • Ensure purify configuration is an array (PHP 7.2 fix) - 455975e
v2.0.0

Added

  • Support for Laravel 5.5

Fixed

  • Removed docs about settings being merged when passing in a configuration array into the second parameter in the Purify::clean() method. These settings weren't being merged with the user config.

Removed

  • Purfiy::setPurifierConfig()
  • Purfiy::getPurifierConfig()
  • Purfiy::setRepository()
v1.1.2

Added

  • Updated HTML Purifier version

Fixed

  • Test
v1.1.1
v1.1.0
v1.0.1
v1.0.0
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
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
twbs/bootstrap4
php-http/client-implementation
phpcr/phpcr-implementation
cucumber/gherkin-monorepo
haydenpierce/class-finder
psr/simple-cache-implementation