mirror of
https://github.com/Respect/Validation.git
synced 2024-06-28 18:20:07 +02:00
Add scrutinizer badges to README.
Also removes the unstable build badge, which is kind of redundant since we will always respect the pattern of keeping the `master` branch stable enough to be used. Two Scrutinizer badges were added: code coverage and code quality. Travis changed to report code coverage to Scrutinizer.
This commit is contained in:
parent
ee6af90ba4
commit
b0eb1284b8
11
.scrutinizer.yml
Normal file
11
.scrutinizer.yml
Normal file
|
@ -0,0 +1,11 @@
|
|||
filter:
|
||||
paths: [library/*]
|
||||
tools:
|
||||
external_code_coverage:
|
||||
runs: 4
|
||||
php_cpd:
|
||||
excluded_dirs: [vendor]
|
||||
php_pdepend:
|
||||
excluded_dirs: [vendor]
|
||||
sensiolabs_security_checker: true
|
||||
php_changetracking: true
|
|
@ -17,6 +17,7 @@ before_script:
|
|||
|
||||
script:
|
||||
- make testdox
|
||||
- make scrutinizer-coverage
|
||||
|
||||
matrix:
|
||||
allow_failures:
|
||||
|
|
13
README.md
13
README.md
|
@ -1,7 +1,12 @@
|
|||
Respect\Validation
|
||||
==================
|
||||
|
||||
[![Build Status](https://secure.travis-ci.org/Respect/Validation.png)](http://travis-ci.org/Respect/Validation) [![Latest Stable Version](https://poser.pugx.org/respect/validation/v/stable.png)](https://packagist.org/packages/respect/validation) [![Total Downloads](https://poser.pugx.org/respect/validation/downloads.png)](https://packagist.org/packages/respect/validation) [![Latest Unstable Version](https://poser.pugx.org/respect/validation/v/unstable.png)](https://packagist.org/packages/respect/validation) [![License](https://poser.pugx.org/respect/validation/license.png)](https://packagist.org/packages/respect/validation)
|
||||
[![Build Status](https://secure.travis-ci.org/Respect/Validation.png)](http://travis-ci.org/Respect/Validation)
|
||||
[![Scrutinizer Code Quality](https://scrutinizer-ci.com/g/Respect/Validation/badges/quality-score.png?b=master)](https://scrutinizer-ci.com/g/Respect/Validation/?branch=master)
|
||||
[![Code Coverage](https://scrutinizer-ci.com/g/Respect/Validation/badges/coverage.png?b=master)](https://scrutinizer-ci.com/g/Respect/Validation/?branch=master)
|
||||
[![Latest Stable Version](https://poser.pugx.org/respect/validation/v/stable.png)](https://packagist.org/packages/respect/validation)
|
||||
[![Total Downloads](https://poser.pugx.org/respect/validation/downloads.png)](https://packagist.org/packages/respect/validation)
|
||||
[![License](https://poser.pugx.org/respect/validation/license.png)](https://packagist.org/packages/respect/validation)
|
||||
|
||||
[The most awesome validation engine ever created for PHP.](http://bit.ly/1a1oeQv)
|
||||
|
||||
|
@ -1538,8 +1543,8 @@ v::perfectSquare()->validate(9); //true (3*3)
|
|||
```
|
||||
#### v::phone()
|
||||
|
||||
Validates a valid 7, 10, 11 digit phone number (North America, Europe and most
|
||||
Asian and Middle East countries), supporting country and area codes (in dot,
|
||||
Validates a valid 7, 10, 11 digit phone number (North America, Europe and most
|
||||
Asian and Middle East countries), supporting country and area codes (in dot,
|
||||
space or dashed notations) such as:
|
||||
|
||||
(555)555-5555
|
||||
|
@ -1549,7 +1554,7 @@ space or dashed notations) such as:
|
|||
+33(1)22 22 22 22
|
||||
+33(020)7777 7777
|
||||
03-6106666
|
||||
|
||||
|
||||
#### v::positive()
|
||||
|
||||
Validates if a number is higher than zero
|
||||
|
|
Loading…
Reference in a new issue