Download the PHP package kvnc/spam-shield without Composer

On this page you can find all versions of the php package kvnc/spam-shield. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package spam-shield

Laravel Anti-Spam Package

A comprehensive Laravel package designed to protect your application from spam and bot submissions. This package includes several features like Google reCAPTCHA integration, honeypots, form submission timeouts, and random human answerable questions with multilingual support.

Features

Installation

Step 1: Install the package via Composer

To install the package, run the following command in your Laravel project:

Step 2: Publish the Configuration File

Once the package is installed, you need to publish the configuration file to your Laravel project:

This will create the config/antispam.php configuration file where you can customize the behavior of the package.

Configuration

After publishing the configuration file, you can modify the settings for various anti-spam features.

Google reCAPTCHA

To enable Google reCAPTCHA on your forms, set enabled to true and add your site and secret keys:

Make sure to add your reCAPTCHA keys to the .env file:

Form Submission Timeout Filter

To prevent bots from submitting forms too quickly, enable the timeout filter and set the minimum_seconds to a value in seconds:

Honeypot Field

Enable the honeypot feature to add a hidden field to your forms that only bots will fill in. Bots will be rejected if they submit the honeypot field.

Random Questions

Enable the random questions feature to display a question that only a human can answer. You can customize the questions for each language.

You can add as many languages as needed. The package will automatically display the questions based on the current locale.

Usage

Adding to Forms

  1. Honeypot Field: Simply include the honeypot field in your form. The field will be hidden from the user, and only bots will fill it.

  2. Random Questions: The question will be displayed dynamically, and the answer must be provided in the random_answer field.

Middleware

The package includes middleware that you can register in app/Http/Kernel.php to protect your routes from spam:

Apply it to your routes or controllers as needed:

Customizing the Questions

You can easily add more questions or modify existing ones by updating the questions section in the config/antispam.php file.

For example, add more questions to the English or Turkish language sections or add a new language.

Security Features

Contributing

We welcome contributions! If you'd like to contribute to this project, please fork the repository, make your changes, and submit a pull request.

License

This package is licensed under the MIT License. See the LICENSE file for more information.


All versions of spam-shield with dependencies

PHP Build Version
Package Version
Requires php Version >=7.4
illuminate/support Version ^8.0|^9.0|^10.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package kvnc/spam-shield contains the following files

Loading the files please wait ....