بامكانك الاطلاع على الرابط التالي
https://stackoverflow.com/questions/11360461/using-phpexcel-to-make-automatic-generated-excel-files
ولعمل دمج الخلايا ممكن من الرابط التالي
https://stackoverflow.com/questions/6820250/merge-cell-values-with-phpexcel-php
لعمل حدود الجدول
https://stackoverflow.com/questions/31204020/phpexcel-set-border-color-of-a-cell