Skip to content

amrikasir/GoogleCapcay

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Google Capcay

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.

About

PHP Library untuk verifikasi Google reCaptcha v2.0

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages