Build Twitter Cards markup in a PHP object