Widgetfy is a PHP library to translate URLs of video sites into the embed / widget