Skip to content

Commit

Permalink
init
Browse files Browse the repository at this point in the history
  • Loading branch information
clarkeash committed Mar 11, 2018
0 parents commit ee1d520
Show file tree
Hide file tree
Showing 10 changed files with 3,800 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
/vendor
/.idea
coverage.xml
33 changes: 33 additions & 0 deletions .scrutinizer.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
filter:
paths: [src/*]
excluded_paths: [tests/*]
checks:
php:
code_rating: true
remove_extra_empty_lines: true
remove_php_closing_tag: true
remove_trailing_whitespace: true
fix_use_statements:
remove_unused: true
preserve_multiple: false
preserve_blanklines: true
order_alphabetically: true
fix_php_opening_tag: true
fix_linefeed: true
fix_line_ending: true
fix_identation_4spaces: true
fix_doc_comments: true
tools:
external_code_coverage: true
php_code_coverage: false
php_code_sniffer:
config:
standard: PSR2
filter:
paths: ['src']
php_loc:
enabled: true
excluded_dirs: [vendor]
php_cpd:
enabled: true
excluded_dirs: [vendor]
21 changes: 21 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
language: php

php:
- 7.1

cache:
directories:
- $HOME/.composer/cache

before_install:
- travis_retry composer self-update

install:
- travis_retry composer install --no-interaction --prefer-dist --no-suggest

script:
- vendor/bin/phpunit --coverage-text --coverage-clover=coverage.clover

after_script:
- wget https://scrutinizer-ci.com/ocular.phar
- php ocular.phar code-coverage:upload --format=php-clover coverage.clover
29 changes: 29 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
# Subdomain

Validates a user submitted subdomain in your application.

<p align="center">
<a href="https://travis-ci.org/laravel-validation-rules/subdomain">
<img src="https://img.shields.io/travis/laravel-validation-rules/subdomain.svg?style=flat-square">
</a>
<a href="https://scrutinizer-ci.com/g/laravel-validation-rules/subdomain/code-structure/master/code-coverage">
<img src="https://img.shields.io/scrutinizer/coverage/g/laravel-validation-rules/subdomain.svg?style=flat-square">
</a>
<a href="https://scrutinizer-ci.com/g/laravel-validation-rules/subdomain">
<img src="https://img.shields.io/scrutinizer/g/laravel-validation-rules/subdomain.svg?style=flat-square">
</a>
<a href="https://github.com/laravel-validation-rules/subdomain/blob/master/LICENSE">
<img src="https://img.shields.io/github/license/laravel-validation-rules/subdomain.svg?style=flat-square">
</a>
<a href="https://twitter.com/clarkeash">
<img src="http://img.shields.io/badge/[email protected]?style=flat-square">
</a>
</p>

## Installation

```bash
composer require laravel-validation-rules/subdomain
```

## Usage
29 changes: 29 additions & 0 deletions composer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
{
"name": "laravel-validation-rules/subdomain",
"description": "Validate a user submitted subdomain",
"type": "library",
"license": "Apache-2.0",
"authors": [
{
"name": "Ashley Clarke",
"email": "[email protected]"
}
],
"require": {
"illuminate/contracts": "^5.6"
},
"require-dev": {
"orchestra/testbench": "^3.6",
"phpunit/phpunit": "^7.0"
},
"autoload": {
"psr-4": {
"LVR\\Subdomain\\": "src/"
}
},
"autoload-dev": {
"psr-4": {
"LVR\\Subdomain\\Tests\\": "tests/"
}
}
}
Loading

0 comments on commit ee1d520

Please sign in to comment.