Skip to content

Commit

Permalink
Edit texts
Browse files Browse the repository at this point in the history
  • Loading branch information
olivervogel committed Mar 13, 2024
1 parent b607fa1 commit cd47af0
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 14 deletions.
20 changes: 16 additions & 4 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -1,9 +1,21 @@
The MIT License (MIT)

Copyright (c) 2013 Oliver Vogel
Copyright (c) 2013-2024 Oliver Vogel

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the "Software"), to deal in
the Software without restriction, including without limitation the rights to
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
of the Software, and to permit persons to whom the Software is furnished to do
so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
31 changes: 21 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -69,13 +69,13 @@ The field under validation must be a formated in [Camel case](https://en.wikiped

public Intervention\Validation\Rules\Camelcase::__construct()

### Classless Inter-Domain Routing (CIDR)
### Classless Inter-Domain Routing (CIDR)

Check if the value is a [Classless Inter-Domain Routing](https://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing) notation (CIDR).

public Intervention\Validation\Rules\Cidr::__construct()

### Creditcard Number
### Creditcard Number

The field under validation must be a valid [creditcard number](https://en.wikipedia.org/wiki/Payment_card_number).

Expand All @@ -87,7 +87,7 @@ The field under validation must be a valid [Data URI](https://en.wikipedia.org/w

public Intervention\Validation\Rules\DataUri::__construct(?array $media_types = null)

### Domain name
### Domain name

The field under validation must be a well formed [domainname](https://en.wikipedia.org/wiki/Domain_name).

Expand Down Expand Up @@ -119,7 +119,7 @@ Optional array of allowed lengths to check only for certain types (GTIN-8, GTIN-

### Hexadecimal color code

The field under validation must be a valid [hexadecimal color code](https://en.wikipedia.org/wiki/Web_colors).
The field under validation must be a valid [hexadecimal color code](https://en.wikipedia.org/wiki/Web_colors).

public Intervention\Validation\Rules\Hexadecimalcolor::__construct(array $lengths = [3, 4, 6, 8])

Expand All @@ -141,7 +141,7 @@ Checks for a valid [International Bank Account Number](https://en.wikipedia.org/

public Intervention\Validation\Rules\Iban::__construct()

### International Mobile Equipment Identity (IMEI)
### International Mobile Equipment Identity (IMEI)

The field under validation must be a [International Mobile Equipment Identity](https://en.wikipedia.org/wiki/International_Mobile_Equipment_Identity) (IMEI).

Expand All @@ -159,7 +159,7 @@ The field under validation must be a valid [International Standard Book Number](

Optional length parameter as integer to check only for ISBN-10 or ISBN-13.

### International Securities Identification Number (ISIN)
### International Securities Identification Number (ISIN)

Checks for a valid [International Securities Identification Number](https://en.wikipedia.org/wiki/International_Securities_Identification_Number) (ISIN).

Expand All @@ -183,7 +183,7 @@ The given value must be formated in [Kebab case](https://en.wikipedia.org/wiki/L

public Intervention\Validation\Rules\Kebabcase::__construct()

### Lower case string
### Lower case string

The given value must be all lower case letters.

Expand Down Expand Up @@ -271,16 +271,27 @@ The field under validation must be all upper case.

### Username

The field under validation must be a valid username. Consisting of alpha-numeric characters, underscores, minus and starting with a alphabetic character. Multiple underscore and minus chars are not allowed. Underscore and minus chars are not allowed at the beginning or end.
The field under validation must be a valid username. Consisting of
alpha-numeric characters, underscores, minus and starting with a alphabetic
character. Multiple underscore and minus chars are not allowed. Underscore and
minus chars are not allowed at the beginning or end.

public Intervention\Validation\Rules\Username::__construct()

## Development & Testing

With this package comes a Docker image to build a test suite container. To build this container you have to have Docker installed on your system. You can run all tests with this command.
With this package comes a Docker image to build a test suite container. To
build this container you have to have Docker installed on your system. You can
run all tests with this command.

$ docker-compose run --rm --build tests

## Authors

- [Oliver Vogel](https://intervention.io)

Thanks to the community of [contributors](https://github.com/Intervention/validation/graphs/contributors) who have helped to improve this project.

## License

Intervention Validation is licensed under the [MIT License](http://opensource.org/licenses/MIT).
Intervention Validation is licensed under the [MIT License](LICENSE).

0 comments on commit cd47af0

Please sign in to comment.