yii2-module-access-manager
yii2-anti-spam-form
yii2-module-access-manager | yii2-anti-spam-form | |
---|---|---|
- | 3 | |
7 | 1 | |
- | - | |
4.3 | 1.1 | |
29 days ago | over 1 year ago | |
PHP | PHP | |
MIT License | - |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
yii2-module-access-manager
We haven't tracked posts mentioning yii2-module-access-manager yet.
Tracking mentions began in Dec 2020.
yii2-anti-spam-form
-
Radio Code Calculator for JavaScript
"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
#!/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
What are some alternatives?
SQLMap - Automatic SQL injection and database takeover tool
composer-diff - Compares composer.lock changes and generates Markdown report so you can use it in PR description.
PHPGGC - PHPGGC is a library of PHP unserialize() payloads along with a tool to generate them, from command line or programmatically.
Yii2 - Yii 2: The Fast, Secure and Professional PHP Framework
sulu-securitytxt-bundle - Sulu Bundle to manage security.txt files
SensioLabs Security Check - A database of PHP security advisories
Repman - Repman - PHP Repository Manager: packagist proxy and host for private packages
Composer - Dependency Manager for PHP
Hprose-PHP - Hprose is a cross-language RPC. This project is Hprose 3.0 for PHP