Download the PHP package jeristiano/think-purifier without Composer

On this page you can find all versions of the php package jeristiano/think-purifier. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package think-purifier

think-purifier

XSS跨站脚本攻击

XSS是一种经常出现在web应用中的计算机安全漏洞,它允许恶意web用户将代码植入到提供给其它用户使用的页面中。比如这些代码包括HTML代码和客户端脚本。

介绍(Introduce)

think-purifierncomposer包对HTMLPurifier的封装,是HTMLPurifier for laravel的thinkphp5版本,作用是用来防止XSS跨站攻击,通过预定义配置,过滤危险的脚本内容达到预防XSS攻击的目的。

安装(Install)

composer require jeristiano/thinkphp-purifier

配置 (Configuration)

配置文件位于 application/extra/purifier.php

参考配置如下:

使用(Usage)

此package是参照了HTMLPurifier for Laravel 5 ,地址 :https://github.com/mewebstudio/Purifier 详细的配置方法请参照此.

推荐配置例子 (Recommaded Configuration)

例子(Sample)

clean('This is my H1 title', 'user_topic_body'); //动态加载配置 clean('This is my H1 title', array('Attr.EnableID' => true));


All versions of think-purifier with dependencies

PHP Build Version
Package Version
Requires php Version >=5.4.0
topthink/think-helper Version >=1.0.4
topthink/think-installer Version >=1.0.10
ezyang/htmlpurifier Version 4.10.*
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package jeristiano/think-purifier contains the following files

Loading the files please wait ....