2017 © Pedro Peláez
 

library domain-constraint

A constraint for Symfony's Validator which tests if a value is a valid domain name.

image

phenaproxima/domain-constraint

A constraint for Symfony's Validator which tests if a value is a valid domain name.

  • Sunday, October 25, 2015
  • by phenaproxima
  • Repository
  • 1 Watchers
  • 2 Stars
  • 12 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 3 Versions
  • 0 % Grown

The README.md

DomainConstraint

A constraint for Symfony's Validator component to test if a value is a valid domain name., (*1)

The value is tested against the rules at http://en.wikipedia.org/wiki/Hostname#Restrictions_on_valid_host_names, (*2)

  • At least two period-delimited segments
  • Cannot start or end with a period
  • Each segment must be between 1 and 63 characters
  • The entire thing is no greater than 255 characters
  • Valid characters are 'a' to 'z', 'A' to 'Z', '0' to '9', and hyphen (-)
  • Labels cannot start or end with a hyphen
  • The last segment must be a support top-level domains (and there are a LOT of strange ones)

The Versions

25/10 2015

dev-master

9999999-dev

A constraint for Symfony's Validator which tests if a value is a valid domain name.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Avatar phenaproxima

25/10 2015

1.0.1

1.0.1.0

A constraint for Symfony's Validator which tests if a value is a valid domain name.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Avatar phenaproxima

06/03 2015

1.0.0

1.0.0.0

A constraint for Symfony's Validator which tests if a value is a valid domain name.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Avatar phenaproxima