PHP Document Adjunte el script para encabezar
$doc->find('head')->append('<script src="foo"></script>');
Enrybi
$doc->find('head')->append('<script src="foo"></script>');