yii2-anti-spam-form

Anti-Spam Form is a form replacement component for the Yii2 Framework for creating anti-spam forms that are invisible in HTML code to spam bots & harvesting tools. (by PELock)

Yii2-anti-spam-form Alternatives

Similar projects and alternatives to yii2-anti-spam-form based on common topics and language

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a better yii2-anti-spam-form alternative or higher similarity.

yii2-anti-spam-form reviews and mentions

Posts with mentions or reviews of yii2-anti-spam-form. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2022-07-14.
  • Radio Code Calculator for JavaScript
    1 project | dev.to | 28 Feb 2023
    "use strict"; /****************************************************************************** * * Radio Code Calculator API - WebApi interface usage example * * In this example, we will demonstrate how to generate a code for a specific * type of car radio. This example shows how to use an extended offline * validation. * * Version : v1.1.0 * JS : ES6 * Dependencies : radio-code-calculator * Author : Bartosz Wójcik ([email protected]) * Project : https://www.pelock.com/products/radio-code-calculator * Homepage : https://www.pelock.com * * @link https://www.pelock.com/products/radio-code-calculator * @copyright Copyright (c) 2021-2023 PELock LLC * @license Apache-2.0 * /*****************************************************************************/ // // include Radio Code Calculator API module // import { RadioCodeCalculator, RadioErrors, RadioModel, RadioModels } from "radio-code-calculator"; // // create Radio Code Calculator API class instance (we are using our activation key) // let myRadioCodeCalculator = new RadioCodeCalculator("ABCD-ABCD-ABCD-ABCD"); // // generate a single radio unlocking code // let serial = "123456"; let extra = ""; // // select a radio model // let radioModel = RadioModels.FORD_M_SERIES; // // display radio model information, you can use it to set limits in your controls e.g. // // textFieldRadioSerial.maxLength = radioModel.serial_max_len // textFieldRadioSerial.regEx = radioModel.serial_regex_pattern() // // (if allowed by your controls) // console.log(`Radio model ${radioModel.name} expects a serial number of ${radioModel.serial_max_len} length and ${radioModel.serial_regex_pattern()} regex pattern `); // additional information if (radioModel.extra_max_len > 0) { console.log(`Additionally an extra field is required with ${radioModel.extra_max_len} and ${radioModel.extra_regex_pattern()} regex pattern `); } // // validate the serial number (offline) before sending the Web API request // let error = radioModel.validate(serial, extra); if (error !== RadioErrors.SUCCESS) { if (error === RadioErrors.INVALID_SERIAL_LENGTH) console.log(`Invalid serial number length (expected ${radioModel.serial_max_len} characters `); else if (error == RadioErrors.INVALID_SERIAL_PATTERN) console.log(`Invalid serial number regular expression pattern (expected ${radioModel.serial_regex_pattern()} regex pattern) `); else if (error == RadioErrors.INVALID_SERIAL_NOT_SUPPORTED) console.log("This serial number is not supported"); else if (error == RadioErrors.INVALID_EXTRA_LENGTH) console.log(`Invalid extra data length (expected ${radioModel.extra_max_len} characters) `); else if (error == RadioErrors.INVALID_EXTRA_PATTERN) console.log(`Invalid extra data regular expression pattern (expected ${radioModel.extra_regex_pattern()} regex pattern) `); process.exit(1); } // // generate radio code (using Web API) // myRadioCodeCalculator.calc(radioModel, serial).then((result) => { console.log("Radio code is " + result["code"]); }).catch((error) => { switch(error["error"]) { case RadioErrors.INVALID_RADIO_MODEL: console.log("Invalid radio model (not supported)"); break; case RadioErrors.INVALID_SERIAL_LENGTH: console.log("Invalid serial number length (expected " + result["serialMaxLen"] + " characters)"); break; case RadioErrors.INVALID_SERIAL_PATTERN: console.log("Invalid serial number regular expression pattern (expected " + result["serialRegexPattern"]["php"] + " regex pattern)"); break; case RadioErrors.INVALID_SERIAL_NOT_SUPPORTED: console.log("This serial number is not supported"); break; case RadioErrors.INVALID_EXTRA_LENGTH: console.log("Invalid extra data length (expected " + result["extraMaxLen"] + " characters)"); break; case RadioErrors.INVALID_EXTRA_PATTERN: console.log("Invalid extra data regular expression pattern (expected " + result["extraRegexPattern"]["php"] + " regex pattern"); break; case RadioErrors.INVALID_INPUT: console.log("Invalid input data"); break; case RadioErrors.INVALID_COMMAND: console.log("Invalid command sent to the Web API interface"); break; case RadioErrors.INVALID_LICENSE: console.log("Invalid license key!"); break; default: console.log(`Something unexpected happen while trying to login to the service (error code ${error}).`); break; } });
  • Radio Code Calculator Online & SDK for Python
    1 project | dev.to | 8 Feb 2023
    #!/usr/bin/env python ############################################################################### # # Radio Code Calculator API - WebApi interface usage example # # In this example, we will demonstrate how to generate a code for a specific # type of car radio. This example shows how to use an extended offline # validation. # # Version : v1.00 # Language : Python # Author : Bartosz Wójcik # Project : https://www.pelock.com/products/radio-code-calculator # Homepage : https://www.pelock.com # ############################################################################### # # include Radio Code Calculator API module # from radio_code_calculator import * # # create Radio Code Calculator API class instance (we are using our activation key) # myRadioCodeCalculator = RadioCodeCalculator("ABCD-ABCD-ABCD-ABCD") # # generate a single radio unlocking code # serial: str = "123456" extra: str = "" # # select a radio model # radioModel: RadioModel = RadioModels.FORD_M_SERIES # # display radio model information, you can use it to set limits in your controls e.g. # # textFieldRadioSerial.maxLength = radioModel.serial_max_len # textFieldRadioSerial.regEx = radioModel.serial_regex_pattern # # (if allowed by your controls) # print(f'Radio model {radioModel.name} expects a serial number of {radioModel.serial_max_len}' f' length and {radioModel.serial_regex_pattern} regex pattern') # additional information if radioModel.extra_max_len > 0: print(f'Additionally an extra field is required with {radioModel.extra_max_len} and' f' and {radioModel.extra_regex_pattern} regex pattern') # # validate the serial number (offline) before sending the Web API request # error = radioModel.validate(serial, extra) if error != RadioErrors.SUCCESS: if error == RadioErrors.INVALID_SERIAL_LENGTH: print(f'Invalid serial number length (expected {radioModel.serial_max_len} characters)') elif error == RadioErrors.INVALID_SERIAL_PATTERN: print(f'Invalid serial number regular expression pattern (expected {radioModel.serial_regex_pattern} regex pattern)') elif error == RadioErrors.INVALID_SERIAL_NOT_SUPPORTED: print("This serial number is not supported") elif error == RadioErrors.INVALID_EXTRA_LENGTH: print(f'Invalid extra data length (expected {radioModel.extra_max_len} characters)') elif error == RadioErrors.INVALID_EXTRA_PATTERN: print(f'Invalid extra data regular expression pattern (expected {radioModel.extra_regex_pattern} regex pattern)') exit(1) # # generate radio code (using Web API) # error, result = myRadioCodeCalculator.calc(radioModel, "123456") if error == RadioErrors.SUCCESS: print(f'Radio code is {result["code"]}') elif error == RadioErrors.INVALID_RADIO_MODEL: print("Invalid radio model (not supported)") elif error == RadioErrors.INVALID_SERIAL_LENGTH: print(f'Invalid serial number length (expected {result["serialMaxLen"]} characters)') elif error == RadioErrors.INVALID_SERIAL_PATTERN: print(f'Invalid serial number regular expression pattern (expected {result["serialRegexPattern"]["python"]} regex pattern)') elif error == RadioErrors.INVALID_SERIAL_NOT_SUPPORTED: print("This serial number is not supported") elif error == RadioErrors.INVALID_EXTRA_LENGTH: print(f'Invalid extra data length (expected {result["extraMaxLen"]} characters)') elif error == RadioErrors.INVALID_EXTRA_PATTERN: print(f'Invalid extra data regular expression pattern (expected {result["extraRegexPattern"]["python"]} regex pattern)') elif error == RadioErrors.INVALID_INPUT: print("Invalid input data") elif error == RadioErrors.INVALID_COMMAND: print("Invalid command sent to the Web API interface") elif error == RadioErrors.INVALID_LICENSE: print("Invalid license key") elif error == RadioErrors.ERROR_CONNECTION: print("Something unexpected happen while trying to login to the service.") else: print(f'Unknown error {error}')
  • Anti-Spam Form for Yii2 Framework
    3 projects | dev.to | 14 Jul 2022
  • A note from our sponsor - WorkOS
    workos.com | 27 Apr 2024
    The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning. Learn more →

Stats

Basic yii2-anti-spam-form repo stats
3
1
1.1
about 1 year ago

Sponsored
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com