1. Go to this page and download the library: Download soflomo/purifier library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
soflomo / purifier example snippets
class MyForm extends Zend\Form\Form implements Zend\InputFilter\InputFilterProviderInterface
{
public function init()
{
$this->add([
'name' => 'text',
'options' => [
'label' => 'Text'
],
'attributes' => [
'type' => 'textarea',
],
]);
}
public function getInputFilterSpecification()
{
return [
'text' => [
'
class MyInputFilter extends Zend\InputFilter\InputFilter
{
public function init()
{
$this->add([
'name' => 'text',
'