How panino/bladecaptcha works
Project type and purpose
• BladeCAPTCHA is an open-source JavaScript/CSS/HTML library plus optional PHP backend that you embed in your web forms to generate and verify CAPTCHAs.
• The README points to examples in public/examples and PHP scripts under public/php, indicating both client-side and server-side components.
File structure
Top-level:
• config/ – stores the sample PHP configuration (config.sample.php).
• public/ – all static assets and PHP endpoints you deploy.
– css/ & js/ – styling and core JS logic (including web workers).
– examples/ – demo HTML pages showing integration patterns.
– php/ – server-side scripts (captcha-lib.php, captcha.php for challenge issuance, cors.php for cross-origin, procesar-formulario.php for form processing).
Others:
• package.json & package-lock.json – hint at using NPM for packaging or build tasks.
• README files in multiple languages – documentation.
README for additional insights
• The PHP library (captcha-lib.php) encapsulates challenge generation and validation.