diff --git a/README.md b/README.md index 6677dba..22330fb 100644 --- a/README.md +++ b/README.md @@ -1 +1,60 @@ # GoogleCapcay +**Google Capcay** merupakan PHP Library untuk verfikasi Google Captcha. +Berikut cara penggunaan **Google Capcay** + +Install dulu dari composer: +```bash +>$ composer require amrikasir/googlecapcay +``` + +baru deh di PHPnya. +```php +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 +SecretKey('Disini Secret Keynya') + ->RespondCode() + ->Verified(); +``` + +itu aja deh, terima bata, sama cendol aja deh. + +tolong di support yaa.., biar bisa pengembangan ke depannya. + +ntar niatnya juga bakalan masukin buat nambahin form HTML nya. diff --git a/src/GoogleCapcayVerified.php b/src/GoogleCapcayVerified.php index c5092e8..0484081 100644 --- a/src/GoogleCapcayVerified.php +++ b/src/GoogleCapcayVerified.php @@ -9,7 +9,7 @@ namespace GoogleCapcay; - class GoogleCapcayVerified +class GoogleCapcayVerified { /* |------------------------------------------------------------------------------