amrikasir / googlecapcay
PHP Library untuk verifikasi Google Captcha v2.0
v1.0.0
2017-05-22 05:54 UTC
Requires
- php: ^5.6.0
This package is auto-updated.
Last update: 2024-05-13 15:27:06 UTC
README
Google Capcay merupakan PHP Library untuk verfikasi Google reCaptcha. Berikut cara penggunaan Google Capcay
Install dulu dari composer:
>$ composer require amrikasir/googlecapcay
baru deh di PHPnya.
<?php require_once __DIR__ . '/vendor/autoload.php'; $GoogleCapcay = new GoogleCapcay\GoogleCapcayVerified(); /* |------------------------------------------------------------------------------- | Secret Key harus diisi */ $GoogleCapcay->SecretKey('Disini Secret Keynya'); /* |------------------------------------------------------------------------------- | RespondCode ngak harus diisi, defaultnya ngambil value dari | $_POST["g-recaptcha-response"] */ $GoogleCapcay->RespondCode(); /* |------------------------------------------------------------------------------- | Terakhir Verfikasi deh | | Return valuenya JSON dari Google Lho.. */ $GoogleCapcay->Verified();
Google Capcay support chaining method
<?php require_once __DIR__ . '/vendor/autoload.php'; $GoogleCapcay = new GoogleCapcay\GoogleCapcayVerified(); /* |------------------------------------------------------------------------------- | Sample Chaining Method */ $GoogleCapcay->SecretKey('Disini Secret Keynya') ->RespondCode() ->Verified();
itu aja deh, terima bata, sama cendol aja deh gan :D.
tolong di support ya gan.., biar bisa pengembangan ke depannya.
ntar niatnya juga bakalan masukin buat nambahin form HTML nya.