Skip to content
This repository was archived by the owner on Apr 23, 2021. It is now read-only.

Commit 788e280

Browse files
Implement initial password Validation rule (#2)
* Implement initial password Validation rule * Apply fixes from StyleCI * Add .scrutinizer.yml & .travis.yml
1 parent 891bafb commit 788e280

17 files changed

+4384
-0
lines changed

.gitignore

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
/vendor/
2+
phpunit.xml

.scrutinizer.yml

+33
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
filter:
2+
excluded_paths: [tests/*]
3+
checks:
4+
php:
5+
code_rating: true
6+
remove_extra_empty_lines: true
7+
remove_php_closing_tag: true
8+
remove_trailing_whitespace: true
9+
fix_use_statements:
10+
remove_unused: true
11+
preserve_multiple: false
12+
preserve_blanklines: true
13+
order_alphabetically: true
14+
fix_php_opening_tag: true
15+
fix_linefeed: true
16+
fix_line_ending: true
17+
fix_identation_4spaces: true
18+
fix_doc_comments: true
19+
tools:
20+
external_code_coverage: false
21+
php_analyzer: true
22+
php_code_coverage: false
23+
php_code_sniffer:
24+
config:
25+
standard: PSR2
26+
filter:
27+
paths: ['src']
28+
php_loc:
29+
enabled: true
30+
excluded_dirs: [vendor, tests]
31+
php_cpd:
32+
enabled: true
33+
excluded_dirs: [vendor, tests]

.travis.yml

+25
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
sudo: required
2+
3+
language: php
4+
5+
php:
6+
- 7.1
7+
- 7.2
8+
9+
env:
10+
matrix:
11+
- COMPOSER_FLAGS="--prefer-lowest"
12+
- COMPOSER_FLAGS=""
13+
14+
before_install:
15+
- travis_retry composer self-update
16+
17+
install:
18+
- travis_retry composer update --prefer-source $COMPOSER_FLAGS
19+
20+
script:
21+
- phpunit
22+
23+
branches:
24+
only:
25+
- master

composer.json

+55
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
{
2+
"name": "ubient/laravel-pwned-passwords",
3+
"description": "A Laravel validation rule to determine whether a given password is pwned (insecure)",
4+
"keywords": [
5+
"ubient",
6+
"laravel-pwned-passwords",
7+
"laravel",
8+
"validation",
9+
"password",
10+
"password-safety",
11+
"haveibeenpwned"
12+
],
13+
"homepage": "https://github.com/ubient/laravel-pwned-passwords",
14+
"license": "MIT",
15+
"authors": [
16+
{
17+
"name": "Claudio Dekker",
18+
"email": "[email protected]",
19+
"homepage": "https://ubient.net",
20+
"role": "Developer"
21+
}
22+
],
23+
"require": {
24+
"php": "^7.1",
25+
"illuminate/contracts": "~5.5.0|~5.6.0|~5.7.0",
26+
"illuminate/support": "~5.5.0|~5.6.0|~5.7.0",
27+
"guzzlehttp/guzzle": "~6.0"
28+
},
29+
"require-dev": {
30+
"phpunit/phpunit": "^7.0",
31+
"orchestra/testbench": "^3.7"
32+
},
33+
"autoload": {
34+
"psr-4": {
35+
"Ubient\\PwnedPasswords\\": "src"
36+
}
37+
},
38+
"autoload-dev": {
39+
"psr-4": {
40+
"Ubient\\PwnedPasswords\\Tests\\": "tests"
41+
}
42+
},
43+
"extra": {
44+
"laravel": {
45+
"providers": [
46+
"Ubient\\PwnedPasswords\\PwnedPasswordsServiceProvider"
47+
]
48+
}
49+
},
50+
"scripts": {
51+
"test": "vendor/bin/phpunit"
52+
},
53+
"minimum-stability": "dev",
54+
"prefer-stable": true
55+
}

0 commit comments

Comments
 (0)