Skip to content

Commit ee1d520

Browse files
committed
init
0 parents  commit ee1d520

File tree

10 files changed

+3800
-0
lines changed

10 files changed

+3800
-0
lines changed

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
/vendor
2+
/.idea
3+
coverage.xml

.scrutinizer.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
filter:
2+
paths: [src/*]
3+
excluded_paths: [tests/*]
4+
checks:
5+
php:
6+
code_rating: true
7+
remove_extra_empty_lines: true
8+
remove_php_closing_tag: true
9+
remove_trailing_whitespace: true
10+
fix_use_statements:
11+
remove_unused: true
12+
preserve_multiple: false
13+
preserve_blanklines: true
14+
order_alphabetically: true
15+
fix_php_opening_tag: true
16+
fix_linefeed: true
17+
fix_line_ending: true
18+
fix_identation_4spaces: true
19+
fix_doc_comments: true
20+
tools:
21+
external_code_coverage: 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]
31+
php_cpd:
32+
enabled: true
33+
excluded_dirs: [vendor]

.travis.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
language: php
2+
3+
php:
4+
- 7.1
5+
6+
cache:
7+
directories:
8+
- $HOME/.composer/cache
9+
10+
before_install:
11+
- travis_retry composer self-update
12+
13+
install:
14+
- travis_retry composer install --no-interaction --prefer-dist --no-suggest
15+
16+
script:
17+
- vendor/bin/phpunit --coverage-text --coverage-clover=coverage.clover
18+
19+
after_script:
20+
- wget https://scrutinizer-ci.com/ocular.phar
21+
- php ocular.phar code-coverage:upload --format=php-clover coverage.clover

README.md

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
# Subdomain
2+
3+
Validates a user submitted subdomain in your application.
4+
5+
<p align="center">
6+
<a href="https://travis-ci.org/laravel-validation-rules/subdomain">
7+
<img src="https://img.shields.io/travis/laravel-validation-rules/subdomain.svg?style=flat-square">
8+
</a>
9+
<a href="https://scrutinizer-ci.com/g/laravel-validation-rules/subdomain/code-structure/master/code-coverage">
10+
<img src="https://img.shields.io/scrutinizer/coverage/g/laravel-validation-rules/subdomain.svg?style=flat-square">
11+
</a>
12+
<a href="https://scrutinizer-ci.com/g/laravel-validation-rules/subdomain">
13+
<img src="https://img.shields.io/scrutinizer/g/laravel-validation-rules/subdomain.svg?style=flat-square">
14+
</a>
15+
<a href="https://github.com/laravel-validation-rules/subdomain/blob/master/LICENSE">
16+
<img src="https://img.shields.io/github/license/laravel-validation-rules/subdomain.svg?style=flat-square">
17+
</a>
18+
<a href="https://twitter.com/clarkeash">
19+
<img src="http://img.shields.io/badge/[email protected]?style=flat-square">
20+
</a>
21+
</p>
22+
23+
## Installation
24+
25+
```bash
26+
composer require laravel-validation-rules/subdomain
27+
```
28+
29+
## Usage

composer.json

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
{
2+
"name": "laravel-validation-rules/subdomain",
3+
"description": "Validate a user submitted subdomain",
4+
"type": "library",
5+
"license": "Apache-2.0",
6+
"authors": [
7+
{
8+
"name": "Ashley Clarke",
9+
"email": "[email protected]"
10+
}
11+
],
12+
"require": {
13+
"illuminate/contracts": "^5.6"
14+
},
15+
"require-dev": {
16+
"orchestra/testbench": "^3.6",
17+
"phpunit/phpunit": "^7.0"
18+
},
19+
"autoload": {
20+
"psr-4": {
21+
"LVR\\Subdomain\\": "src/"
22+
}
23+
},
24+
"autoload-dev": {
25+
"psr-4": {
26+
"LVR\\Subdomain\\Tests\\": "tests/"
27+
}
28+
}
29+
}

0 commit comments

Comments
 (0)