Get, validate and generate MAC addresses with PHP.