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

Filter Laravel Package

joomla/filter

Joomla Filter provides input sanitization and filtering utilities for PHP apps. Use InputFilter to allow/block specific HTML tags and attributes, and OutputFilter for safe output helpers like URL-safe strings. Composer installable, lightweight, framework-ready.

View on GitHub
Deep Wiki
Context7

The Filter Package Build Status

Latest Stable Version Total Downloads Latest Unstable Version License

Installation via Composer

Add "joomla/filter": "~3.0.*@dev" to the require block in your composer.json and then run composer install.

{
	"require": {
		"joomla/filter": "~3.0"
	}
}

Alternatively, you can simply run the following from the command line:

composer require joomla/filter "~3.0"

If you want to include the test sources, use

composer require --prefer-source joomla/filter "~3.0"

Note that the Joomla\Language package is an optional dependency and is only required if the application requires the use of OutputFilter::stringURLSafe.

Upgrades from 1 to 2

Note the InputFilter static class constants have been renamed:

Before After
InputFilter::TAGS_WHITELIST InputFilter::ONLY_ALLOW_DEFINED_TAGS
InputFilter::TAGS_BLACKLIST InputFilter::ONLY_BLOCK_DEFINED_TAGS
InputFilter::ATTR_WHITELIST InputFilter::ONLY_ALLOW_DEFINED_ATTRIBUTES
InputFilter::ATTR_BLACKLIST InputFilter::ONLY_BLOCK_DEFINED_ATTRIBUTES

The public property InputFilter::tagBlacklist has been renamed to InputFilter::blockedTags. Similarly InputFilter::attrBlacklist has been renamed to InputFilter::blockedAttributes

All code usage of these properties remains unchanged.

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
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
uri-template/tests