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

Commit 7c189e4

Browse files
committed
Merge branch 'v2'
* v2: changelog removed travis yml Changelog and readme new packages via composer Test classes created Code styling travis yml travis yml changed phpunit XML .idea in .gitignore
2 parents 43cc150 + c223713 commit 7c189e4

16 files changed

+3461
-219
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
vendor/
22
node_modules/
3+
/.idea
34

45
# Laravel 4 specific
56
bootstrap/compiled.php

.travis.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,16 @@
11
language: php
22

33
php:
4-
- 5.5
54
- 5.6
6-
- 7
75
- 7.1
6+
- 7.2
7+
- 7.3
8+
- hhvm
89

910
before_script:
1011
- travis_retry composer self-update
1112
- travis_retry composer install --prefer-source --no-interaction
13+
- curl -sSfL -o ~/.phpenv/versions/hhvm/bin/phpunit https://phar.phpunit.de/phpunit-5.7.phar
1214

1315
matrix:
1416
allow_failures:

CHANGELOG.md

Lines changed: 0 additions & 15 deletions
This file was deleted.

README.md

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -106,8 +106,11 @@ $v = Validator::make(request()->all(), [
106106

107107
Print form errors
108108
```php
109-
dd($v->errors());
109+
$errors = $v->errors();
110110
```
111111

112-
## Changelog
113-
[Changelog](CHANGELOG.md)
112+
## Test
113+
114+
```sh
115+
composer test
116+
```

composer.json

Lines changed: 31 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,34 @@
11
{
2-
"name": "biscolab/laravel-recaptcha",
3-
"license": "MIT",
4-
"authors": [
5-
{
6-
"name": "Roberto Belotti",
7-
"email": "[email protected]"
8-
}
9-
],
10-
"require": {
11-
"php": ">=5.5.9|7.*",
12-
"laravel/framework": "5.*"
13-
},
14-
"require-dev": {
15-
"mockery/mockery": "~0.9",
16-
"phpunit/phpunit": "~4.0"
17-
},
18-
"autoload": {
19-
"psr-4": {
20-
"Biscolab\\ReCaptcha\\": "src/"
2+
"name": "biscolab/laravel-recaptcha",
3+
"license": "MIT",
4+
"authors": [
5+
{
6+
"name": "Roberto Belotti",
7+
"email": "[email protected]"
8+
}
9+
],
10+
"require": {
11+
"php": ">=5.5.9|7.*",
12+
"laravel/framework": "5.*"
13+
},
14+
"require-dev": {
15+
"orchestra/testbench": "~3.0",
16+
"phpunit/phpunit": "~4.0"
17+
},
18+
"autoload": {
19+
"psr-4": {
20+
"Biscolab\\ReCaptcha\\": "src/"
21+
},
22+
"files": [
23+
"src/helpers.php"
24+
]
2125
},
22-
"files": [
23-
"src/helpers.php"
24-
]
25-
}
26+
"autoload-dev": {
27+
"psr-4": {
28+
"Biscolab\\ReCaptcha\\Tests\\": "tests/"
29+
}
30+
},
31+
"scripts": {
32+
"test": "phpunit"
33+
}
2634
}

0 commit comments

Comments
 (0)