PHP code example of snstvwd / laravel-filter

1. Go to this page and download the library: Download snstvwd/laravel-filter 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/ */

    

snstvwd / laravel-filter example snippets


php artisan vendor:publish --provider="Snstvwd\Filter\Providers\FilterSerivceProvider"


use Filter;

public function test () {
    $text = '他是傻逼吗?';
    $filter = Filter::filter($text)->getText();
    dump($filter);
}