dapphp/securimage
Securimage is a PHP CAPTCHA library that generates customizable captcha images and audio challenges to protect forms from spam. It supports custom fonts, colors, backgrounds, wordlists, and audio captchas, and integrates easily into existing PHP applications and frameworks.
dapphp/securimage is a self-contained PHP CAPTCHA library that generates image/audio challenges and validates responses against session state. It fits traditional server-rendered Laravel monoliths with form submissions, especially where a self-hosted CAPTCHA is preferred over a third-party service. It is a weak fit for stateless APIs, SPAs, mobile clients, or microservices because it depends on server-side session continuity and PHP image-generation capabilities.$_SESSION by default, accessibility and audio-CAPTCHA support, and reduced effectiveness against modern bots. The BSD-2-Clause license is permissive and low legal risk.CaptchaService interface so controllers and form requests do not call the library directly. Add namespaced routes for image/audio generation, a validation rule, a Blade component, configuration, and a feature flag. Keep an exit path to an alternative such as honeypot/rate-limit controls or a maintained CAPTCHA provider.gd, mbstring, FreeType), font files, and session behavior. The biggest integration unknown is the session bridge: Securimage expects native PHP session storage, while Laravel abstracts sessions. Confirm behavior with Redis/database sessions and multiple app instances. Avoid relying on local filesystem sessions in load-balanced environments.How can I help you explore Laravel packages today?