dev-master
9999999-devpackage to use caramel captcha
BSD-2-Clause
The Requires
- php >=5.3.0
- illuminate/support 4.0.x
by @totox777
package to use caramel captcha
Laravel 4 karamel package based on karamel wrapper, (*1)
add this line to your composer.json, (*2)
"totox777/karamel": "dev-master"
and then, Run :, (*3)
composer update
to pull down the latest version., (*4)
add this line to your app.php provider array:, (*5)
'Totox777\Karamel\KaramelServiceProvider',
and add this line to app.php aliases array:, (*6)
'Karamel' => 'Totox777\Karamel\Facades\Profiler',
config: don't forget to chage the api-key and memberID / Email you got from dev.karamel.co.id in vendor/totox777/karamel/src/config/config.php, (*7)
Sample Usage (Form):, (*8)
Karamel::GetCaptcha();
Sample Usage (Validation):, (*9)
$responseValue = $_POST["gotcha_val"]; $status = Karamel::ValidateCaptcha($responseValue); if ($status) { // Corrent answer, continue with your submission process } else { // Wrong answer, you may display a new AdsCaptcha and add an error message }
package to use caramel captcha
BSD-2-Clause