Cellbrush is (yet another) PHP library to generate HTML tables.
It does support colspan and rowspan.
What really makes it special is that table cells are addressed by string keys, and empty cells are filled automatically. This means, you can add cells in any order, and you don't need to babysit the table's structural integrity! This allows for a more semantical work flow.