Requiring commercial services to adhere to certain guidelines is constitutional, even though the Texas law is a bad one and I think a different court may have slapped down the law. Mandating speech (code is speech) is clearly not, especially for noncommercial projects.
I think the key would be getting the right person to explain how this would be like requiring all authors to include a certain sentence in their novel.