Download the PHP package kikwik/debounce-bundle without Composer
On this page you can find all versions of the php package kikwik/debounce-bundle. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download kikwik/debounce-bundle
More information about kikwik/debounce-bundle
Files in kikwik/debounce-bundle
Package debounce-bundle
Short Description Integration with https://debounce.io/ for Symfony 4.4
License MIT
Informations about the package debounce-bundle
KikwikDebounceBundle
https://debounce.io/ integration for symfony 4
Installation
Open a command console, enter your project directory and execute the following command to download the latest stable version of this bundle:
Configuration
Create the config/packages/kikwik_debounce.yaml
config file, set the api_key
parameter
and define the return codes (as array) which you consider safe for your application (default is [4,5,7,8])
create the api from https://app.debounce.io/api and copy it in your .env file
Usage
Autowire the Kikwik\DebounceBundle\Service\DebounceInterface
service in your controller and call check
method:
or use the Kikwik\DebounceBundle\Model\DebounceTrait
to generate some fields in the entity:
Don't forget to make migrations and update your database:
Finally call $user->setDebounceResponse($debounce->check($email));
to save debounce results in the entity
Configure dev/test environment
Add dev/test fake_debounce_server route in config/routes/kikwik_debounce.yaml
Add dev/test configuration in config/packages/kikwik_debounce.yaml
All versions of debounce-bundle with dependencies
doctrine/orm Version ^2.7
symfony/framework-bundle Version ^4.4|^5.0
symfony/http-client Version ^4.4|^5.0