Download the PHP package mcaskill/charcoal-recaptcha without Composer
On this page you can find all versions of the php package mcaskill/charcoal-recaptcha. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download mcaskill/charcoal-recaptcha
More information about mcaskill/charcoal-recaptcha
Files in mcaskill/charcoal-recaptcha
Package charcoal-recaptcha
Short Description Google reCAPTCHA for Charcoal.
License MIT
Informations about the package charcoal-recaptcha
Google reCAPTCHA for Charcoal
A Charcoal service provider for the Google reCAPTCHA client Library.
This package can be used as a PSR-7 middleware or as an object in your service layer.
Installation
See composer.json
for depenencides.
What's inside?
Charcoal\ReCaptcha\CaptchaServiceProvider
: Pimple service provider.Charcoal\ReCaptcha\CaptchaConfig
: Configuring the CAPTCHA service.Charcoal\ReCaptcha\CaptchaAwareTrait
: Convenient trait for interfacing with the CAPTCHA service.Charcoal\ReCaptcha\Captcha
: Service that handles the reCAPTCHA client.Charcoal\ReCaptcha\LocalizedCaptcha
: Translator-aware variant of the service.
Usage
By default, the Captcha
adapter will defer the instantiation of ReCaptcha
until the first verification request.
Custom ReCaptcha Class
The ReCaptcha
class be swapped using the client_class
option.
Custom ReCaptcha Instance
An instance of the ReCaptcha
class can be assigned using the client
option.
Service Provider
If CaptchaServiceProvider
is used, the following are provided.
Parameters
- charcoal/captcha/config: An instance of
CaptchaConfig
.
Services
- charcoal/captcha: An instance of
Captcha
.
Registering
Via Charcoal configuration file:
Via PHP:
Acknowledgements
This package is inspired by:
License
All versions of charcoal-recaptcha with dependencies
pimple/pimple Version ^3.0
psr/http-message Version ^1.0
google/recaptcha Version ^1.1
locomotivemtl/charcoal-config Version ~0.8