Download the PHP package advancedideasmechanics/mezzio-recaptcha-v3-middleware without Composer
On this page you can find all versions of the php package advancedideasmechanics/mezzio-recaptcha-v3-middleware. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download advancedideasmechanics/mezzio-recaptcha-v3-middleware
More information about advancedideasmechanics/mezzio-recaptcha-v3-middleware
Files in advancedideasmechanics/mezzio-recaptcha-v3-middleware
Package mezzio-recaptcha-v3-middleware
Short Description Google reCAPTCHA v3 PSR-15 Middleware and Service for Mezzio and Laminas applications
License MIT
Homepage https://advanced.im/product/mezzio-recaptcha-v3-middleware
Informations about the package mezzio-recaptcha-v3-middleware
Mezzio Google Analytics Measurement Protocol
Mezzio Middleware for Google ReCaptcha V3
Composer
composer require advancedideasmechanics/mezzio-recaptcha-v3-middleware
Use
For route.php Middleware use.
use AdvancedIdeasMechanics\MezzioReCaptchaV3\Middleware\ReCaptchaMiddleware::class;
$app->get('/', [ReCaptchaMiddleware:class, App\Handler\HomePageHandler::class], 'home');
For use with Oauth2 Example
$app->post('/oauth/authorize', [ // Uses the withAction helper to change the expected Google action fn($container) => $container->get(ReCaptchaMiddleware::class)->withAction('oauth_login'), App\Handler\OAuthAuthorizationHandler::class, ], 'oauth.authorize');
Config
return [ 'recaptcha' => [ 'site_key' => '6Lxxxx...', 'secret_key' => '6Lxxxx...', 'score_threshold' => 0.5, ], ];
All versions of mezzio-recaptcha-v3-middleware with dependencies
psr/http-client Version ^1.0
psr/http-factory Version ^1.0
psr/http-message Version ^1.0 || ^2.0
psr/http-server-middleware Version ^1.0
psr/container Version ^1.0 || ^2.0