Hello,
Please check the documentation available on https://www.phpdocx.com/documentation/cookbook/headers-and-footers-for-sections. As you are using a Premium license you can use in-memory DOCX for each document instead of creating them in the fs, in the included samples of your package you can find scripts using in-memory documents.
Regards.