Skip to content

Commit

Permalink
Merge pull request #10 from DavidePastore/single-ip-usage-documentation
Browse files Browse the repository at this point in the history
Add documentation about single IP usage
  • Loading branch information
DavidePastore committed Feb 12, 2017
2 parents 2d0d6cd + d7c6ea9 commit 7b1b3d3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,8 @@ You can restrict route using a different value of `ip` in the `options` given to
* any of the filters provided by PHP regarding `FILTER_VALIDATE_IP` (e.g.: `FILTER_FLAG_NO_PRIV_RANGE`);
* asterisk (`*`) to filter ip that are in the given subnet (e.g.: `192.*`);
* ranges (`-`) to filter ip that are in the given range (e.g.: `192.168.0.0-192.168.255.255`);
* array of ranges to filter ip (e.g.: `array('192.0.0.0-192.255.255.255', '178.0.0.*')`);
* single ip (e.g.: `192.168.0.1-192.168.0.1`);
* array of ranges to filter ip (e.g.: `array('192.0.0.0-192.255.255.255', '178.0.0.*')`).

You can find more syntax information on the `Ip` validator [documentation](https://github.com/Respect/Validation/blob/master/docs/Ip.md) and in its [Unit Test class](https://github.com/Respect/Validation/blob/master/tests/unit/Rules/IpTest.php).

Expand Down

0 comments on commit 7b1b3d3

Please sign in to comment.