Skip to content
This repository was archived by the owner on Jun 10, 2024. It is now read-only.

Commit a98591e

Browse files
committed
Merge branch 'develop' into release/v3
* develop: Update README.md Updated README.md Package discovery Update README.md composer errata corrige
2 parents 4b776f9 + 6d4f18c commit a98591e

File tree

2 files changed

+23
-9
lines changed

2 files changed

+23
-9
lines changed

README.md

Lines changed: 13 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
# Laravel ReCAPTCHA - v3
2-
Simple Google ReCaptcha package for Laravel 5
2+
Simple Google reCAPTCHA package for Laravel 5
3+
4+
[![Build Status](https://travis-ci.org/biscolab/laravel-recaptcha.svg?branch=master)](https://travis-ci.org/biscolab/laravel-recaptcha) [![Scrutinizer Code Quality](https://scrutinizer-ci.com/g/biscolab/laravel-recaptcha/badges/quality-score.png?b=master)](https://scrutinizer-ci.com/g/biscolab/laravel-recaptcha/?branch=master) ![Packagist version](https://img.shields.io/packagist/v/biscolab/laravel-recaptcha.svg)
35

46
## System requirements
5-
PHP 7.1 or grater
7+
PHP 7.1 or greater
68

79
Are you still using PHP 5.6? Please go to [V2](https://github.com/biscolab/laravel-recaptcha/tree/v2.0.4)
810

@@ -12,14 +14,14 @@ You can install the package via composer:
1214
```sh
1315
composer require biscolab/laravel-recaptcha:^3.0
1416
```
15-
The service **provider** must be registered in `config/app.php`:
17+
Laravel 5.5 (or greater) uses package auto-discovery, so doesn't require you to manually add the Service Provider, but if you don't use auto-discovery `ReCaptchaServiceProvider` must be registered in `config/app.php`:
1618
```php
1719
'providers' => [
1820
...
1921
Biscolab\ReCaptcha\ReCaptchaServiceProvider::class,
2022
];
2123
```
22-
You can use the facade for shorter code. Add "ReCaptcha" to your aliases:
24+
You can use the facade for shorter code. Add `ReCaptcha` to your aliases:
2325
```php
2426
'aliases' => [
2527
...
@@ -43,15 +45,15 @@ return [
4345
'skip_ip' => [] // array of IP addresses - String: dotted quad format e.g.: 127.0.0.1
4446
];
4547
```
46-
For more invermation about Site Key and Secret Key please visit [Google RaCaptcha developer documentation](https://developers.google.com/recaptcha/docs/start)
47-
Get more info about ReCAPTCHA version at https://developers.google.com/recaptcha/docs/versions
48-
**skip_ip** is a list of IP addresses that, if recognized, disable the recaptcha validation (return always true).
48+
For more invermation about Site Key and Secret Key please visit [Google reCAPTCHA developer documentation](https://developers.google.com/recaptcha/docs/start)
49+
Get more info about reCAPTCHA version at https://developers.google.com/recaptcha/docs/versions
50+
**skip_ip** is a list of IP addresses that, if recognized, disable the reCAPTCHA validation (return always true).
4951

5052
### Have you updated?
5153
If you are migrating from an older version add `skip_ip` array in `recaptcha.php` configuration file.
5254

5355
### Customize error message
54-
Before starting please add validation recaptcha message to `resources/lang/[LANG]/validation.php` file
56+
Before starting please add the validation message to `resources/lang/[LANG]/validation.php` file
5557
```php
5658
return [
5759
...
@@ -118,4 +120,6 @@ $errors = $v->errors();
118120

119121
```sh
120122
composer test
121-
```
123+
```
124+
## License
125+
[![MIT License](https://img.shields.io/github/license/biscolab/laravel-recaptcha.svg)](https://github.com/biscolab/laravel-recaptcha/blob/master/LICENSE)

composer.json

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,5 +31,15 @@
3131
},
3232
"scripts": {
3333
"test": "phpunit"
34+
},
35+
"extra": {
36+
"laravel": {
37+
"providers": [
38+
"Biscolab\\ReCaptcha\\ReCaptchaServiceProvider"
39+
],
40+
"aliases": {
41+
"ReCaptcha": "Biscolab\\ReCaptcha\\Facades\\ReCaptcha"
42+
}
43+
}
3444
}
3545
}

0 commit comments

Comments
 (0)