All Projects → nickurt → laravel-akismet

nickurt / laravel-akismet

Licence: MIT license
Akismet for Laravel 8.x/9.x

Programming Languages

PHP
23972 projects - #3 most used programming language

Projects that are alternatives of or similar to laravel-akismet

Wordpress Zero Spam
The WordPress Zero Spam plugin makes blocking spam a cinch without all the bloated options. Just install, activate, and say goodbye to spam.
Stars: ✭ 56 (-34.12%)
Mutual labels:  spam
Bdreborn
An administration bot based on ➣ https://valtman.name/telegram-cli :)
Stars: ✭ 144 (+69.41%)
Mutual labels:  spam
brutal-sms
Spam sms sampe nangis, 100% unlimited
Stars: ✭ 47 (-44.71%)
Mutual labels:  spam
Sisyphus
Intelligent Junk Mail Handler
Stars: ✭ 76 (-10.59%)
Mutual labels:  spam
Jamspymer
SMS, Call, Mail, Telegram бомбер с открытым исходным кодом
Stars: ✭ 95 (+11.76%)
Mutual labels:  spam
007spam Bot
auto report instagram accounts ( SPAM BOT )
Stars: ✭ 150 (+76.47%)
Mutual labels:  spam
Akismet Api
Nodejs bindings to the Akismet (https://akismet.com) spam detection service
Stars: ✭ 40 (-52.94%)
Mutual labels:  spam
php-antispam
A PHP API for antispam service cleantalk.org. Invisible protection from spam, no captches, no puzzles, no animals and no math.
Stars: ✭ 50 (-41.18%)
Mutual labels:  spam
Bomb3r
SMS bomb3r | Made with ❤ in IN.
Stars: ✭ 113 (+32.94%)
Mutual labels:  spam
discord-group-spammer
You need to run all_together.py and follow the instructions on the readme below. This Tool allows you to use various discord exploits for educational use.
Stars: ✭ 45 (-47.06%)
Mutual labels:  spam
Tbomb
This is a SMS And Call Bomber For Linux And Termux
Stars: ✭ 1,287 (+1414.12%)
Mutual labels:  spam
Wifi Spam
✉️📡 Spam thousands of WiFi access points with custom SSIDs
Stars: ✭ 92 (+8.24%)
Mutual labels:  spam
Energizedprotection
A merged collection of hosts from reputable sources. #StayEnergized!
Stars: ✭ 175 (+105.88%)
Mutual labels:  spam
Webwhatsappbot
Core to automatize whatsapp - working 11/2018
Stars: ✭ 59 (-30.59%)
Mutual labels:  spam
blogspam-api
Implementation of the blogspam.net server in golang
Stars: ✭ 22 (-74.12%)
Mutual labels:  spam
Postfwd Anti Geoip Spam Plugin
Postfwd plugin for blocking international spam botnets based on geographical location of IP addresses used to login to postfix via sasl.
Stars: ✭ 40 (-52.94%)
Mutual labels:  spam
Yetanothersmsbomber
Clean, small and powerful SMS bomber script.
Stars: ✭ 150 (+76.47%)
Mutual labels:  spam
sarlacc
SMTP server / sinkhole for collecting spam
Stars: ✭ 42 (-50.59%)
Mutual labels:  spam
v3
E.F.A version 3.x.x.x
Stars: ✭ 38 (-55.29%)
Mutual labels:  spam
Discord Spam Bots
Discord spam bots with multiple account support, account creator, auto-join, proxies, mass direct message and more.
Stars: ✭ 173 (+103.53%)
Mutual labels:  spam

Laravel Akismet

Build Status Total Downloads Latest Stable Version MIT Licensed

Installation

Install this package with composer:

composer require nickurt/laravel-akismet

Copy the config files for the api

php artisan vendor:publish --provider="nickurt\Akismet\ServiceProvider" --tag="config"

Configuration

The Akismet information can be set with environment values in the .env file (or directly in the config/akismet.php file)

AKISMET_APIKEY=MY_UNIQUE_APIKEY
AKISMET_BLOGURL=https://my-custom-blogurl.dev

Examples

Validation Rule

You can use a hidden-field akismet in your Form-Request to validate if the request is valid

// FormRequest ...

public function rules()
{
    return [
        'akismet' => [new \nickurt\Akismet\Rules\AkismetRule(
            request()->input('email'), request()->input('name')
        )]
    ];
}

// Manually ...

$validator = validator()->make(['akismet' => 'akismet'], ['akismet' => [new \nickurt\Akismet\Rules\AkismetRule(
    request()->input('email'), request()->input('name')
)]]);

The AkismetRule requires a email and name parameter to validate the request.

Events

You can listen to the IsSpam, ReportSpam and ReportHam events, e.g. if you want to log all the IsSpam-requests in your application

IsSpam Event

This event will be fired when the request contains spam nickurt\Akismet\Events\IsSpam

ReportSpam Event

This event will be fired when you succesfully reported spam nickurt\Akismet\Events\ReportSpam

ReportHam Event

This event will be fired when you succesfully reported ham nickurt\Akismet\Events\ReportHam

Custom Implementation

Validate Key
if( \Akismet::validateKey() ) {
    // valid
} else {
    // invalid
}
Set CommentAuthor Information
\Akismet::setCommentAuthor("John Doe")
    ->setCommentAuthorUrl("https://www.google.com")
    ->setCommentContent("It's me, John!")
    ->setCommentType('registration');
    // etc
    
// or
\Akismet::fill([
    'comment_author' => 'John Doe',
    'comment_author_url' => 'https://www.google.com',
    'comment_content' => 'It's me, John!'
]);
// etc
Is it Spam?
if( \Akismet::isSpam() ) {
    // yes, i'm spam!
}
Submit Spam (missed spam)
if( \Akismet::reportSpam() ) {
    // yes, thanks!
}
Submit Ham (false positives)
if( \Akismet::reportHam() ) {
    // yes, thanks!
}

Tests

composer test

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].