PHP class to treat Open Graph Protocol markup as an object and validate freeform text input values. The validator class should improve the consistency of data provided to Open Graph Protocol consuming clients, normalize inputs, and help publishers correct invalid inputs before final submission.
This class is meant to serve as a base, extended with classes more specific to a consuming agent of choice (Facebook, Mixi, etc.). An ideal version of such a validator would take into consideration the addressing schemes of specific countries, but let's start semi-simple.
The Open Graph Protocol validator makes a few allowed value assumptions not specified in the current Open Graph Protocol spec:
validator class inital work
full OGP validator
Thank you so much for the validator. We'd rather not host an explicit validator but would be happy to link to yours if you host it somewhere. Just send a pull request with a link to your external page.