Use
phphtmllib
instead.