New

Just launched: Vueblocks, a brand-new search engine for Vue packages! Explore Vueblocks →

alexusmai/laravel-purifier

HTML Purifier for Laravel 5
4,523 1

Larablocks Analysis

alexusmai/laravel-purifier works with Laravel 5 to 8 (latest release 1.0, Sep 9, 2020), all past end of life (the last on Jan 24, 2023): no more fixes, even for security.

Recommendation checks

Not advised

Not advised: no release or commit in over 2 years.

  • No release or commit in over 2 years
  • Supports only Laravel 5 to 8, past end of life since Jan 24, 2023
  • No release in the last 12 months (last: Sep 9, 2020)
  • 1 downloads a month (needs 10,000)
  • 1 GitHub star (needs 100)

State

Likely abandoned
  • No release or commit in over 2 years.
  • Last stable release: Sep 9, 2020.
  • No releases in the last 12 months.
  • First released: Feb 7, 2017.
  • Monthly downloads: 1, down 67% from six months ago.
  • 0 open issues on GitHub.

Data from Packagist and GitHub, checked by Larablocks on Dec 3, 2026.

Install
composer require alexusmai/laravel-purifier
Latest Version:1.0
PHP:>=5.6.4
Laravel:5 – 8
License:MIT
Last Updated:Sep 9, 2020
Links: GitHub  ·  Packagist
Maintainer: alexusmai

HTMLPurifier - Laravel 5 package

Latest Stable Version Total Downloads Latest Unstable Version License

HTML Purifier is a standards-compliant HTML filter library written in PHP.

About HTML Purifier - http://htmlpurifier.org/

Installation

Composer

composer require alexusmai/laravel-purifier

If you have Laravel 5.4 or earlier version, then add service provider to config/app.php and

Alexusmai\LaravelPurifier\LaravelPurifierServiceProvider::class,

add alias.

'Purifier' => Alexusmai\LaravelPurifier\Facades\PurifierFacade::class,

Publish config file (purifier.php)

php artisan vendor:publish --provider="Alexusmai\LaravelPurifier\LaravelPurifierServiceProvider"

Usage

Use default settings (config/purifier.php - default)

// string
Purifier::clean($text);

// array
Purifier::clean(['text1', 'text2', 'text3']);

// or use helper function
purifier($text);

Or you can create your own settings in configuration file (config/purifier.php)

Purifier::clean($text, 'my-settings-name');

purifier($text, 'my-settings-name');

Or you can use dynamic configuration

Purifier::clean($text, ['HTML.Allowed' => 'div,br,span']);

purifier($text, ['HTML.Allowed' => 'div,br,span']);

Related Packages

sloyakuza/laravel-html-purifier

An HTML Purifier for Laravel

1,784 0
mews/purifier

Laravel 5/6/7/8/9/10 HtmlPurifier Package

23,909,128 1,976
stevebauman/purify

An HTML Purifier / Sanitizer for Laravel

8,781,230 537
stolz/laravel-html-tidy

HTML Tidy middleware for Laravel

8,831 26
doctrine/dbal

Powerful PHP database abstraction layer (DBAL) with many features for database s...

670,032,257 9,703

Version History

Version Released PHP Laravel License
1.0 >=5.6.4 5.1.*|5.2.*|5.3.*|5.4.*|5.5.*|5.6.*|5.7.*|5.8.*|6.*|7.*|8.* MIT
0.9 >=5.6.4 5.1.*|5.2.*|5.3.*|5.4.*|5.5.*|5.6.*|5.7.*|5.8.*|6.*|7.* MIT
0.8 >=5.6.4 5.1.*|5.2.*|5.3.*|5.4.*|5.5.*|5.6.*|5.7.*|5.8.*|6.* MIT
0.7 >=5.6.4 5.1.*|5.2.*|5.3.*|5.4.*|5.5.*|5.6.*|5.7.*|5.8.*|6.0.* MIT
0.6 >=5.6.4 5.1.*|5.2.*|5.3.*|5.4.*|5.5.*|5.6.*|5.7.*|5.8.* MIT