Skip to content

Commit

Permalink
README
Browse files Browse the repository at this point in the history
  • Loading branch information
ddevsr committed Apr 1, 2023
1 parent 9586784 commit 86b47a0
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
[![PHPUnit](https://github.com/PHPDevsr/reCaptcha-Codeigniter4/workflows/PHPUnit/badge.svg)](https://github.com/PHPDevsr/reCaptcha-Codeigniter4/actions/workflows/test-phpunit.yml)
[![PHPStan](https://github.com/PHPDevsr/reCaptcha-Codeigniter4/actions/workflows/test-phpstan.yml/badge.svg)](https://github.com/PHPDevsr/reCaptcha-Codeigniter4/actions/workflows/test-phpstan.yml)
[![Coverage Status](https://coveralls.io/repos/github/PHPDevsr/reCaptcha-Codeigniter4/badge.svg?branch=dev)](https://coveralls.io/github/PHPDevsr/reCaptcha-Codeigniter4?branch=dev)
[![Downloads](https://poser.pugx.org/phpdevsr/recaptcha-codeigniter4/downloads)](https://packagist.org/packages/phpdevsr/recaptcha-codeigniter4)
[![GitHub release (latest by date)](https://img.shields.io/github/v/release/PHPDevsr/reCaptcha-Codeigniter4)](https://packagist.org/packages/phpdevsr/recaptcha-codeigniter4)
[![GitHub stars](https://img.shields.io/github/stars/PHPDevsr/reCaptcha-Codeigniter4)](https://packagist.org/packages/phpdevsr/recaptcha-codeigniter4)
[![GitHub license](https://img.shields.io/github/license/PHPDevsr/reCaptcha-Codeigniter4)](https://github.com/PHPDevsr/reCaptcha-Codeigniter4/blob/dev/LICENSE)

# reCAPTCHA Codeigniter 4
Free to Use Library reCAPTCHA v2 for Codeigniter 4.

Expand All @@ -16,6 +24,7 @@ To use reCAPTCHA, you need to [sign up for an API key pair][4] for your site. Th
install with composer
```bash
$ composer require phpdevsr/recaptcha-codeigniter4
$ php spark config:publish
```

# Usage
Expand All @@ -27,7 +36,7 @@ $ composer require phpdevsr/recaptcha-codeigniter4

require 'vendor/autoload.php';

use PHPDevsr\Recaptcha\Config\Recaptcha as RecaptchaConfig;
use Config\Recaptcha as RecaptchaConfig;
use PHPDevsr\Recaptcha\Recaptcha;

class Example
Expand All @@ -51,10 +60,6 @@ class Example
// Set Config
$this->config = new RecaptchaConfig();

$this->config->recaptchaSiteKey = 'your-site-key';
$this->config->recaptchaSecretKey = 'your-secret-key';
$this->config->recaptchaLang = 'id';

$this->recaptcha = new Recaptcha($this->config);
}
}
Expand Down

0 comments on commit 86b47a0

Please sign in to comment.