Skip to content

Commit de11f41

Browse files
committed
Update fork and add Laravel 8 support
1 parent c4726c6 commit de11f41

File tree

7 files changed

+32
-21
lines changed

7 files changed

+32
-21
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,4 @@
22
composer.phar
33
composer.lock
44
.DS_Store
5+
.idea

README.md

Lines changed: 14 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,22 @@
11
No CAPTCHA reCAPTCHA
22
==========
33

4-
[![Build Status](https://travis-ci.org/anhskohbo/no-captcha.svg?branch=master&style=flat-square)](https://travis-ci.org/anhskohbo/no-captcha)
5-
[![Latest Stable Version](https://poser.pugx.org/anhskohbo/no-captcha/v/stable)](https://packagist.org/packages/anhskohbo/no-captcha)
6-
[![Total Downloads](https://poser.pugx.org/anhskohbo/no-captcha/downloads)](https://packagist.org/packages/anhskohbo/no-captcha)
7-
[![Latest Unstable Version](https://poser.pugx.org/anhskohbo/no-captcha/v/unstable)](https://packagist.org/packages/anhskohbo/no-captcha)
8-
[![License](https://poser.pugx.org/anhskohbo/no-captcha/license)](https://packagist.org/packages/anhskohbo/no-captcha)
4+
[![Build Status](https://travis-ci.org/dutchcodingcompany/no-captcha.svg?branch=master&style=flat-square)](https://travis-ci.org/dutchcodingcompany/no-captcha)
5+
[![Latest Stable Version](https://poser.pugx.org/dutchcodingcompany/no-captcha/v/stable)](https://packagist.org/packages/dutchcodingcompany/no-captcha)
6+
[![Total Downloads](https://poser.pugx.org/dutchcodingcompany/no-captcha/downloads)](https://packagist.org/packages/dutchcodingcompany/no-captcha)
7+
[![Latest Unstable Version](https://poser.pugx.org/dutchcodingcompany/no-captcha/v/unstable)](https://packagist.org/packages/dutchcodingcompany/no-captcha)
8+
[![License](https://poser.pugx.org/dutchcodingcompany/no-captcha/license)](https://packagist.org/packages/dutchcodingcompany/no-captcha)
99

1010
![recaptcha_anchor 2x](https://cloud.githubusercontent.com/assets/1529454/5291635/1c426412-7b88-11e4-8d16-46161a081ece.gif)
1111

12-
> For Laravel 4 use [v1](https://github.com/anhskohbo/no-captcha/tree/v1) branch.
12+
> This is a fork of [anhskohbo/no-captcha](https://github.com/anhskohbo/no-captcha) which seems no longer supported!
13+
14+
> For Laravel 4 use [v1](https://github.com/DutchCodingCompany/no-captcha/tree/v1) branch.
1315
1416
## Installation
1517

1618
```
17-
composer require anhskohbo/no-captcha
19+
composer require DutchCodingCompany/no-captcha
1820
```
1921

2022
## Laravel 5 and above
@@ -28,19 +30,19 @@ In `app/config/app.php` add the following :
2830
1- The ServiceProvider to the providers array :
2931

3032
```php
31-
Anhskohbo\NoCaptcha\NoCaptchaServiceProvider::class,
33+
DutchCodingCompany\NoCaptcha\NoCaptchaServiceProvider::class,
3234
```
3335

3436
2- The class alias to the aliases array :
3537

3638
```php
37-
'NoCaptcha' => Anhskohbo\NoCaptcha\Facades\NoCaptcha::class,
39+
'NoCaptcha' => DutchCodingCompany\NoCaptcha\Facades\NoCaptcha::class,
3840
```
3941

4042
3- Publish the config file
4143

4244
```ssh
43-
php artisan vendor:publish --provider="Anhskohbo\NoCaptcha\NoCaptchaServiceProvider"
45+
php artisan vendor:publish --provider="DutchCodingCompany\NoCaptcha\NoCaptchaServiceProvider"
4446
```
4547

4648
### Configuration
@@ -175,7 +177,7 @@ require_once "vendor/autoload.php";
175177

176178
$secret = 'CAPTCHA-SECRET';
177179
$sitekey = 'CAPTCHA-SITEKEY';
178-
$captcha = new \Anhskohbo\NoCaptcha\NoCaptcha($secret, $sitekey);
180+
$captcha = new \DutchCodingCompany\NoCaptcha\NoCaptcha($secret, $sitekey);
179181

180182
if (! empty($_POST)) {
181183
var_dump($captcha->verifyResponse($_POST['g-recaptcha-response']));
@@ -194,4 +196,4 @@ if (! empty($_POST)) {
194196

195197
## Contribute
196198

197-
https://github.com/anhskohbo/no-captcha/pulls
199+
https://github.com/DutchCodingCompany/no-captcha/pulls

composer.json

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,34 +1,42 @@
11
{
2-
"name": "glennbergmans/no-captcha",
2+
"name": "dutchcodingcompany/no-captcha",
33
"description": "No CAPTCHA reCAPTCHA For Laravel.",
44
"keywords": ["recaptcha", "no-captcha", "captcha", "laravel", "laravel4", "laravel5"],
55
"license": "MIT",
66
"authors": [
7+
{
8+
"name": "anhskohbo",
9+
"email": "anhskohbo@gmail.com"
10+
},
711
{
812
"name": "Glenn Bergmans",
913
"email": "glenn@dutchcodingcompany.com"
14+
},
15+
{
16+
"name": "Marco Boers",
17+
"email": "marco@dutchcodingcompany.com"
1018
}
1119
],
1220
"require": {
1321
"php": ">=5.5.5",
1422
"illuminate/support": "^5.0|^6.0|^7.0|^8.0",
15-
"guzzlehttp/guzzle": "^6.2"
23+
"guzzlehttp/guzzle": "^6.2|^7.0"
1624
},
1725
"require-dev": {
1826
"phpunit/phpunit": "~4.8"
1927
},
2028
"autoload": {
2129
"psr-4": {
22-
"GlennBergmans\\NoCaptcha\\": "src/"
30+
"DutchCodingCompany\\NoCaptcha\\": "src/"
2331
}
2432
},
2533
"extra": {
2634
"laravel": {
2735
"providers": [
28-
"GlennBergmans\\NoCaptcha\\NoCaptchaServiceProvider"
36+
"DutchCodingCompany\\NoCaptcha\\NoCaptchaServiceProvider"
2937
],
3038
"aliases": {
31-
"NoCaptcha": "GlennBergmans\\NoCaptcha\\Facades\\NoCaptcha"
39+
"NoCaptcha": "DutchCodingCompany\\NoCaptcha\\Facades\\NoCaptcha"
3240
}
3341
}
3442
}

src/Facades/NoCaptcha.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22

3-
namespace GlennBergmans\NoCaptcha\Facades;
3+
namespace DutchCodingCompany\NoCaptcha\Facades;
44

55
use Illuminate\Support\Facades\Facade;
66

src/NoCaptcha.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22

3-
namespace GlennBergmans\NoCaptcha;
3+
namespace DutchCodingCompany\NoCaptcha;
44

55
use Symfony\Component\HttpFoundation\Request;
66
use GuzzleHttp\Client;

src/NoCaptchaServiceProvider.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22

3-
namespace GlennBergmans\NoCaptcha;
3+
namespace DutchCodingCompany\NoCaptcha;
44

55
use Illuminate\Support\ServiceProvider;
66

tests/NoCaptchaTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22

3-
use Anhskohbo\NoCaptcha\NoCaptcha;
3+
use DutchCodingCompany\NoCaptcha\NoCaptcha;
44

55
class NoCaptchaTest extends PHPUnit_Framework_TestCase
66
{

0 commit comments

Comments
 (0)