PHPackages                             germania-kg/googlerecaptcha - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Security](/categories/security)
4. /
5. germania-kg/googlerecaptcha

ActiveLibrary[Security](/categories/security)

germania-kg/googlerecaptcha
===========================

Callable and Pimple Service Provider for Google's ReCaptcha.

1.0.6(4y ago)055MITPHPPHP ^5.6|^7.0

Since Nov 15Pushed 3y ago2 watchersCompare

[ Source](https://github.com/GermaniaKG/GoogleRecaptcha)[ Packagist](https://packagist.org/packages/germania-kg/googlerecaptcha)[ RSS](/packages/germania-kg-googlerecaptcha/feed)WikiDiscussions master Synced 2mo ago

READMEChangelogDependencies (5)Versions (9)Used By (0)

Germania KG · GoogleRecaptcha
=============================

[](#germania-kg--googlerecaptcha)

**Callable wrapper, Slim3 Middleware and Pimple-style Service Provider for Google's [ReCaptcha.](https://www.google.com/recaptcha/admin)**

[![Packagist](https://camo.githubusercontent.com/72a9202b1fb6410d7b61bbc02ac63327acf647180e6d88ed3b374e4b4a861515/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6765726d616e69612d6b672f676f6f676c657265636170746368612e7376673f7374796c653d666c6174)](https://packagist.org/packages/germania-kg/googlerecaptcha)[![PHP version](https://camo.githubusercontent.com/27ad2b8eb596609df0baf24b5c21aa7b5223cd1ff65d3d4b40bc88dc19d6e034/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f6765726d616e69612d6b672f676f6f676c657265636170746368612e737667)](https://packagist.org/packages/germania-kg/googlerecaptcha)[![Build Status](https://camo.githubusercontent.com/73d9d29e377550f98fb9c554e59b39ad18b8fd837077da039bb485b032dd0fcd/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f4765726d616e69614b472f476f6f676c655265636170746368612e7376673f6c6162656c3d5472617669732532304349)](https://travis-ci.org/GermaniaKG/GoogleRecaptcha)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/d9a257b9bbb4be94830b7e2999be2ba445596db44a8fad8b9ddafdfa68cbf9a7/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f4765726d616e69614b472f476f6f676c655265636170746368612f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/GermaniaKG/GoogleRecaptcha/?branch=master)[![Code Coverage](https://camo.githubusercontent.com/0e76bcc3fe2ef24f4b7c62a0114e4562fbd71aee484cda8f7ce080d8365855d5/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f4765726d616e69614b472f476f6f676c655265636170746368612f6261646765732f636f7665726167652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/GermaniaKG/GoogleRecaptcha/?branch=master)[![Build Status](https://camo.githubusercontent.com/7fb2bcbce8dba2608eaba575501fbddef4d6df4129f4148f295014da367e26d2/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f4765726d616e69614b472f476f6f676c655265636170746368612f6261646765732f6275696c642e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/GermaniaKG/GoogleRecaptcha/build-status/master)

Installation with Composer
--------------------------

[](#installation-with-composer)

```
$ composer require germania-kg/googlerecaptcha
```

Alternatively, add this package directly to your *composer.json:*

```
"require": {
    "germania-kg/googlerecaptcha": "^1.0"
}
```

Usage
-----

[](#usage)

The following examples assume you're working with [Pimple](https://pimple.symfony.com/) or [Slim Framework](https://www.slimframework.com/) and have your [DI container](https://www.slimframework.com/docs/concepts/di.html) at hand:

```
$app = new Slim\App;
$dic = $app->getContainer();
$dic = new Slim\Container;
$dic = new Pimple\Container;
```

---

### ServiceProvider

[](#serviceprovider)

See chapter [The services in detail](#the-services-in-detail) to see which services and resources are offered. For public and secret test keys, see the official [reCAPTCHA v2 FAQ](https://developers.google.com/recaptcha/docs/faq).

```
