Download the PHP package tobento/app-spam without Composer

On this page you can find all versions of the php package tobento/app-spam. 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 app-spam

App Spam

Spam protection for forms and detecting spam using the validator.

Table of Contents

Getting Started

Add the latest version of the app spam project running this command.

Requirements

Documentation

App

Check out the App Skeleton if you are using the skeleton.

You may also check out the App to learn more about the app in general.

Spam Boot

The spam boot does the following:

Spam Config

The configuration for the spam is located in the file at the default App Skeleton config location where you can specify detectors for your application.

Basic Usage

Render Detector

In your view file, render the detector on your form using the view macro:

Check out the App View to learn more about it.

Using a factory

Alternatively, you can specify a detector factory:

Check out the Available Factories for its available detector factories.

Detect Spam

To protect your form against spam, add the middleware to the route that your form points to.

Check out the Available Factories for its available detector factories.

Available Detectors

Composite Detector

The detector may be used to compose detectors:

EmailDomain Detector

The detector, detects spam email domains from the the specified blacklist.

You may consider to create a factory to import blacklisted email domains from a file or any other source.

EmailRemote Detector

The detector, detects spam email domains using PHP In-built functions , and to verify email domain.

Honeypot Detector

The detector, renders an invisible input element that should never contain a value when submitted. If a bot fills this input out, or removes the input from the request, the request will be detected as spam.

MinTimePassed Detector

The detector, renders an invisible input element with the time in it as an encrypted value. If the form is submitted faster than defined , or removes the input from the request, the request will be detected as spam.

You may check out the App Encryption to learn more about it.

Null Detector

The detector does not detect any request as spam at all.

WithoutUrl Detector

If the defined contain an URL, the request will be detected as spam by the detector.

Available Factories

Composite Factory

The factory creates a Composite Detector:

EmailRemote Factory

The factory creates a EmailRemote Detector:

Honeypot Factory

The factory creates a Honeypot Detector:

MinTimePassed Factory

The factory creates a MinTimePassed Detector:

Named Factory

The factory may be used to create a detector from a named detector:

Check out the Register Named Detectors section to learn more about it.

WithoutUrl Factory

The factory creates a WithoutUrl Detector:

Register Named Detectors

Register Named Detector via Config

You can register named detectors in the config file :

Register Named Detector via Boot

Manually Detecting Spam

After having booted the spam, inject the in any service or controller.

Detecting spam from value

Detecting Spam Using Validator

Requirements

It requires the App Validation:

In addition, you may boot the boot if you want to support string definition rule like .

Otherwise, you will need to boot the validator boot:

Spam Rule

Skip validation

You may use the skipValidation parameter in order to skip validation under certain conditions:

Http Spam Error Handler Boot

The http error handler boot does the following:

The boot is automatically loaded by the Spam Boot.

The error handler will return a 422 Unprocessable Entity HTTP response if spam was detected.

You may create a custom Error Handler With A Higher Priority of as defined on the to handle spam exceptions to fit your application.

Events

Available Events

Event Description
The event will dispatch after a spam has been detected

Supporting Events

Simply, install the App Event bundle.

Credits


All versions of app-spam with dependencies

PHP Build Version
Package Version
Requires php Version >=8.0
psr/container Version ^2.0
tobento/app Version ^1.0.7
tobento/app-migration Version ^1.0
tobento/app-http Version ^1.0 || ^1.1
tobento/app-view Version ^1.0
tobento/app-encryption Version ^1.0
tobento/service-autowire Version ^1.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 tobento/app-spam contains the following files

Loading the files please wait ....