Commit graph

121 commits

Author SHA1 Message Date
Henrique Moody fe4a93ddb0 Merge pull request #220 from CommandZ-io/master
Updated Domain and Mac Address docs.
2015-01-02 16:13:52 -02:00
Henrique Moody 6a5e414035 Merge pull request #218 from jarrettchisholm/master
Fixed v::min documentation
2015-01-02 16:10:14 -02:00
Henrique Moody b8d804817f Merge pull request #221 from bmorg/typo-fix
Fixed a typo / missing word.
2015-01-02 16:09:42 -02:00
Ricardo Seromenho 14dce04865 Fix v::length $inclusive default on Readme #217 2014-12-29 00:31:06 +00:00
Bernhard Morgenstern 70a4d07f8c Fixed a typo / missing word. 2014-12-14 17:11:45 +01:00
Andy Wendt 9944ae8054 Updated Domain and Mac Address docs.
Domain validator incorrectly stated that an ip would validate.  See `Respect\Validation\Rules\DomainTest`

Added second valid Mac Address format demonstration using `-`.  See `Respect\Validation\Rules\MacAddressTest`
2014-12-13 16:56:50 -07:00
Jarrett Chisholm 0b3d7c4b9d - fixed links
- added 2 more v::max() examples
2014-12-04 14:38:23 -05:00
Jarrett Chisholm 564922e6eb - fixed min/max documentation 2014-12-04 14:35:36 -05:00
Henrique Moody e2950e6a51 Create Executable rule 2014-11-10 16:36:12 -02:00
Wesley Victhor Mendes Santiago 4f5bd8eaf6 Merge pull request #201 from elazar/patch-1
Fixed Exception class in "Informative Exceptions"
2014-10-07 12:10:19 -03:00
Davide Pastore 40a7b1e7ba Add Test section in README.md
Use <project folder>, add the "$" symbol, remove the configuration of phpunit, add composer download and installation of dependencies.
2014-08-04 09:40:03 +02:00
Matthew Turland a379977b2c Fixed Exception class in "Informative Exceptions"
The example in the "Informative Exceptions" section uses InvalidArgumentException, which is incorrect as that class does not have a getFullMessage() method. The class that defines getFullMessage() is AbstractNestedException, of which DomainException is a subclass, so I've replaced InvalidArgumentException with that to make the example accurate.
2014-07-25 09:22:47 -05:00
Jefersson Nathan 2ce3685b20 Links of rules on README.
All references to rules inside the README now have
a link to the corresponding section into the documentation.

Fixes #190 on GitHub.
2014-07-15 04:07:17 +00:00
Augusto Pascutti b0eb1284b8 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.
2014-07-11 03:26:03 -03:00
Nick Lombard 8223931d05 Removed <?php as it is not required anymore. 2014-04-18 12:04:38 +02:00
Nick Lombard d2ffd8e8b6 Merge pull request #162 from GypsyCodex/highlight-readme-code
Add Syntax Highlighting in README.md
2014-04-18 12:03:18 +02:00
Davide Pastore be6eaf733f Add Syntax Highlighting in README.md 2014-04-12 16:59:10 +02:00
Davide Pastore 4dfc77790c Little typo 2014-04-09 10:05:15 +02:00
Augusto Pascutti 979c06997b Merge pull request #148 from augustohp/develop
Allow internationalized domains and skip TLD check.
2014-02-19 23:20:33 -03:00
Mehmet Tolga Avcioglu d12787cb9e Domain rules now can skip TLD checks and accepts IDNA.
Skipping TLD check allows for local domains like "machine.dev",
but the default behavior of the rule still the same: it validates
TLDs, so domains will only be valid (by default) if the TLD is a
valid one.

The signature of rule (using the builder) changes from:

    v::domain() // Still works, same behavior as before.

To:

    v::domain(false) // Skips TLD check.

Fix #33.

The "Domain" rule now validates domains on "ASCII Compatible Encoding"
[ACE][1] for internationalized domain names (ICANN, 2003).

An excerpt from Wikipedia article:

> If given a label containing at least one non-ASCII character, ToASCII
> will apply the Nameprep algorithm, which converts the label to
> lowercase and performs other normalization, and will then translate the
> result to ASCII using [Punycode][16] before prepending the four-character
> string ["xn--"][17].

[1]: http://wikipedia.org/wiki/Internationalized_domain_name#ToASCII_and_ToUnicode
[16]: http://tools.ietf.org/html/rfc3492
[17]: http://www.atm.tut.fi/list-archive/ietf-announce/msg13572.html
2014-02-16 21:29:23 -03:00
Logan H Kennedy a73f9d8595 Fix grammar error on README.md.
Fix phrase "given data is a file (that) was uploaded" on `uploaded`
validation rule.
2014-02-16 21:00:13 -03:00
Andrey Knupp Vital 917176222c Adds NFeAccessKey validation rule.
Relevant just to Brazil, this rule validates NFe access key.
2014-02-16 16:48:51 -03:00
Augusto Pascutti 159213b731 Updates README introduction.
With the discussion on reddit about Respect/Validation being the most
awesome validation engine and also with a more accurate number of
current rules.
2014-02-16 03:17:13 -03:00
Nick Lombard a6917b5914 Moved badges to fit screen width 2014-01-29 03:34:15 +02:00
Nick Lombard 7de50ba122 Added some packagist bling
poser badges as provided by https://poser.pugx.org/
2014-01-29 03:25:59 +02:00
mf 10990b7751 Updated documentation and unit tests for phone validation 2013-04-28 23:29:09 -04:00
Pascal Borreli 2776a405cb Fixed typos 2013-02-25 23:15:23 +00:00
Henrique Moody 3f41cf6058 Created rule "Uploaded"
This rule checks if the given data is a file was uploaded via HTTP POST.
2013-02-04 22:57:35 -02:00
Henrique Moody 48a9fad2c2 Created rule "Writable".
This rule checks if the given data is a file exists and is writable.
2013-02-04 22:54:46 -02:00
Henrique Moody 7a6fb85b46 Created rule "Readable".
This rule checks if the given data is a file exists and is readable.
2013-02-04 22:51:45 -02:00
Henrique Moody daf660502a Created rule "SymbolicLink"
This rule checks if the given data is a path of a valid symbolic link.
2013-02-04 22:48:21 -02:00
Henrique Moody fa641ef175 Created rule "Exists"
This rule checks if the given data is a path of a regular file or
directory.
2013-02-04 22:10:36 -02:00
Henrique Moody 879f08aad1 Created rule "File"
This rule checks if the given data is a path of a regular file or not.
2013-02-04 22:03:54 -02:00
nickl- 00f6a5bacc Update documentation explain all values optional 2013-01-25 05:20:14 +02:00
nickl- dc6d23d520 Refactor rename Printable Prnt. 2013-01-25 05:20:12 +02:00
Andre Ramaciotti 36b67b2336 Updated documentation to have correct names for Ctype rules 2013-01-25 05:20:12 +02:00
nickl- 2c9371e048 Fix:2 for #97 Refactor rename Vowels to Vowel.
As per #97 Plural rules no singular.
Vowels to Vowel.
Vowelss now a deprecated decorator class of Vowel.
Documentation updated.
2013-01-25 05:18:04 +02:00
nickl- 625d78bf90 Fix:1 for #97 Refactor rename Consonants to Consonant.
As per #97 Plural rules no singular.
Consonants to Consonant.
Consonants now deprecated.
Documentation updated.
2013-01-25 05:18:04 +02:00
nickl- e7e991a7bf Fix whitespace only in REAIME.md 2013-01-25 05:18:03 +02:00
nickl- bfa098fa0e Fix documentation for Digit and Digits 2013-01-25 05:18:03 +02:00
Andre Ramaciotti 272cff1d4c Updated documentation
I've also marked hexa as deprecated and moved `countryCode` to
its alphabetical position.
2013-01-25 05:18:01 +02:00
Alexandre Gaigalas 4625d1c24e Charset Validator 2012-12-06 23:31:24 -02:00
Kinn Coelho Julião fa298ffda6 Updated README.md with CNH examples 2012-11-25 22:34:41 -02:00
Nick Lombard 6378904fd7 Test GitPanda 2012-09-19 02:32:13 +03:00
ed100 b32cbca0e6 Fixes #85: README with a sintax error on "Custom methods" and "Getting Messages"
Thanks to *ed100* for pointing that out! The instructions on how to
use and change *Exception* messages in *README.md* were missing the
**array()** as argument for the method **findMessages()**.
2012-08-16 23:37:22 -03:00
Caio César Tavares 981b20ff56 example revision in Negation Rules section 2012-07-18 23:07:21 -03:00
Alexandre Gaigalas 2858863662 Added Exceptions for AlwaysInvalid, AlwaysValid and CountryCode validators 2012-05-24 12:13:48 -03:00
Vicente Mendoza c9f0c05f57 add shorcuts not and addOr 2012-05-05 19:06:13 -05:00
Henrique Moody 67e845e08f Correction of typo. 2012-04-20 01:54:13 -03:00
Henrique Moody a7d0fc4371 Mentioned the validator directory in the documentation. 2012-04-20 01:52:32 -03:00
Alexandre Gaigalas 4f44c37c06 More README.md improvements 2012-04-09 23:14:20 -03:00
Alexandre Gaigalas 15d601983b New try on README.md headers 2012-04-09 22:46:28 -03:00
Alexandre Gaigalas c4495a61c8 Better readme and some tweak on Roman 2012-04-08 19:55:05 -03:00
Alexandre Gaigalas 926b67a0b7 New README on its way, some fixes 2012-04-08 19:08:39 -03:00
Henrique Moody 3ac6b39d46 Just to rebuild on Travis. 2012-04-07 15:11:15 -03:00
Rogerio Prado de Jesus a66cd1807a Update year of copyright at README.md 2012-03-05 13:56:47 -03:00
Alexandre Gomes Gaigalas 809d37965d Small change on README.md to meet other Respect projects README standards. (In fact, I just changed this to ping Travis CI) 2011-11-28 11:49:27 -02:00
Alexandre Gomes Gaigalas 7097c98798 [no ci] 2011-11-25 19:12:12 -02:00
Alexandre Gomes Gaigalas 4c4fa70773 Packaging 2011-05-04 12:09:08 -03:00
Alexandre Gomes Gaigalas d562f6fa69 Small README update 2011-05-03 10:32:49 -03:00
Alexandre Gomes Gaigalas 67c789fa92 Added {{input}} param on AbstractRule 2011-04-29 16:17:20 -03:00
Alexandre Gomes Gaigalas e635db4a19 New API for findRelated() and findMessages() on AbstractNestedException 2011-04-29 16:00:39 -03:00
Alexandre Gomes Gaigalas 2e8dd7b171 Export exceptions to plain arrays (to use in template engines, for example) 2011-03-30 19:06:59 -03:00
Alexandre Gomes Gaigalas 38e4350dab Markdown fix 2011-03-21 15:30:23 -03:00
Alexandre Gomes Gaigalas 6b7dd11211 Licensing 2011-03-21 13:24:39 -03:00
Alexandre 191065bf4c Very early stage Internet Domain Name validators. New Contains and Tld (top-level domain) validators. NoWhitespace now validates for null values. 2011-02-20 21:53:21 -03:00
Alexandre 4e068bf204 -Messages are now imperative ("foo must be bar") instead of informative ("foo is not bar").
-Several improvements on the messaging system and error reporting, lots of refactored code.
-Validators can now be safely named $val->setName('My Field'), and that name will reflect on the validation message ("My Field must be bla bla bla" instead of "incorrect value" must be bla bla bla)
2011-02-08 20:10:58 -02:00
Alexandre Gomes Gaigalas 51ad2948ac Roadmap change 2011-02-08 10:18:49 -08:00
Alexandre 644d521663 Better docs, quick reference 2011-02-07 12:46:08 -02:00
Alexandre 822fd269f8 Better README, fixed bugs on AllOf and AlphaException 2011-02-07 12:22:30 -02:00
Alexandre 4b4390eb31 Switched from textile to markdown 2011-02-06 23:35:35 -02:00