1. Go to this page and download the library: Download saeven/zf3-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/ */
saeven / zf3-purifier example snippets
class MyForm extends Laminas\Form\Form implements Laminas\InputFilter\InputFilterProviderInterface
{
public function init()
{
$this->add([
'name' => 'text',
'options' => [
'label' => 'Text'
],
'attributes' => [
'type' => 'textarea',
],
]);
}
public function getInputFilterSpecification()
{
return [
'text' => [
'
class MyInputFilter extends Laminas\InputFilter\InputFilter
{
public function init()
{
$this->add([
'name' => 'text',
'