2017 © Pedro Peláez
 

library recapcha

PSR-7 Google reCAPCHA Middleware

image

sadegh-pm/recapcha

PSR-7 Google reCAPCHA Middleware

  • Saturday, February 25, 2017
  • by SadeghPM
  • Repository
  • 1 Watchers
  • 4 Stars
  • 4 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

PSR-7 Google reCAPCHA Middleware

Software License
This middleware implement server side google reCAPCHA v2 validation.It was originally developed for Slimframework 3 but can be used with any framework using PSR-7 style middlewares. It is very simple and without any dependancy., (*1)

Install

Install latest version using composer., (*2)

``` bash $ composer require sadegh-pm/recapcha, (*3)


## Usage Add the middleware in the route that you rendering the reCAPTCHA widget. for example i inserted reCAPTCHA widget in the <code>/login</code> route: ```php $app->post('/login', App\Api\Login::class . ':verify') ->add( new \SadeghPM\Recapcha\GoogleReCapcha($reCAPCHA_Secret) );

if google reCAPCHA verifying the user's response , your route will be resolved otherwise app will be terminate.the terminated response status code is 403 and body is a json:, (*4)

{
  "ok":false,
  "description":"errors..."
}

The Versions

25/02 2017

dev-master

9999999-dev https://github.com/SadeghPM/reCAPCHA

PSR-7 Google reCAPCHA Middleware

  Sources   Download

MIT

The Requires

  • php >=5.5.0

 

middleware psr-7 slimframework recapcha

25/02 2017

v1.0

1.0.0.0 https://github.com/SadeghPM/reCAPCHA

PSR-7 Google reCAPCHA Middleware

  Sources   Download

MIT

The Requires

  • php >=5.5.0

 

middleware psr-7 slimframework recapcha