Skip to content

Commit

Permalink
Published
Browse files Browse the repository at this point in the history
  • Loading branch information
amrikasir committed May 22, 2017
1 parent db70067 commit 19b0b05
Show file tree
Hide file tree
Showing 2 changed files with 60 additions and 1 deletion.
59 changes: 59 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -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
<?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
<?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.

tolong di support yaa.., biar bisa pengembangan ke depannya.

ntar niatnya juga bakalan masukin buat nambahin form HTML nya.
2 changes: 1 addition & 1 deletion src/GoogleCapcayVerified.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
namespace GoogleCapcay;


class GoogleCapcayVerified
class GoogleCapcayVerified
{
/*
|------------------------------------------------------------------------------
Expand Down

0 comments on commit 19b0b05

Please sign in to comment.