PHP code example of eliepse / argile-honeypot
1. Go to this page and download the library: Download eliepse/argile-honeypot library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
eliepse / argile-honeypot example snippets
$router->get('/', WelcomeController::class)
->addMiddleware(new HoneypotResponseMiddleware());
$router->post("/contact", [SendContactMailController::class, 'send'])
->addMiddleware(new HoneypotRequestMiddleware());