samjoyce777/laravel-post-screen

Scans through a users input and checks for unwanted words, phrases, links, emails and telephone numbers
5 2
Install
composer require samjoyce777/laravel-post-screen
License:MIT
Last Updated:Feb 7, 2016
Links: GitHub  ·  Packagist
Maintainer: elmhurst

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.

Installation

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

Add the service provider to the config.php

$ \samjoyce777\LaravelPostScreen\ScreenServiceProvider::class,

Add the facade as well to make it all pretty

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

Move the config file to make your customizations

$ php artisan vendor:publish --tag=config

Usage

This will check to see if an email is in the text

Screen::hasEmail($post);

This will check to see if text has an external link

Screen::hasExternalLink($post);

This run through your configuration to see if the text passes all methods required.

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.

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

Related Packages

paxha/laravel-recursive-relationships

This Laravel Eloquent extension provides recursive relationships using common ta...

56,281 27
bertbijnens/laravel-fractal-paginate

Extending Spatie's laravel fractal package to support build-in pagination

17,826 2
wheredidgogogo/avanser

A Laravel package to connect to Avanser call tracking API

6,300 1
mrabbani/laravel-module-manager

Laravel Module Management

5,186 88
benbjurstrom/passport-custom-jwt-claims

Customize JWT claims in Laravel Passport access tokens

1,759 34