2017 © Pedro Peláez
 

laravel laravel-post-screen

Scans through a users input and checks for unwanted words, phrases, links, emails and telephone numbers

image

samjoyce777/laravel-post-screen

Scans through a users input and checks for unwanted words, phrases, links, emails and telephone numbers

  • Sunday, February 7, 2016
  • by samjoyce
  • Repository
  • 1 Watchers
  • 1 Stars
  • 1 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

Laravel Post Screen Package

Scans through a users input and checks for unwanted words, phrases, links, and emails. If the list of words you have are long I would recommend having the response back to the user, queue the post screening for later and publish once scanned., (*1)

Installation

$ composer install samjoyce777/laravel-post-screen --save

Add the service provider to the config.php, (*2)

$ \samjoyce777\LaravelPostScreen\ScreenServiceProvider::class,

Add the facade as well to make it all pretty, (*3)

$ 'Map' => \samjoyce777\LaravelPostScreen\Facades\Screen::class,

Move the config file to make your customizations, (*4)

$ php artisan vendor:publish --tag=config

Usage

This will check to see if an email is in the text, (*5)

Screen::hasEmail($post);

This will check to see if text has an external link, (*6)

Screen::hasExternalLink($post);

This run through your configuration to see if the text passes all methods required., (*7)

Screen::isClean($post);

You can also set different levels of screening depending on requirements by setting more levels in the config file and passing level name on the second argument., (*8)

Screen::isClean($post, 'review');

The Versions

07/02 2016

dev-master

9999999-dev

Scans through a users input and checks for unwanted words, phrases, links, emails and telephone numbers

  Sources   Download

MIT

The Requires

 

The Development Requires