Putting additional functionality for Commerce Files/License
Here's what you need to get started.

You'll need to create a new license type and extend the CommerceLicenseBase class (or the file class). When your license class (whose parent class is CommerceLicenseBase) gets activated, the -&gt;activate() method ends up calling -&gt;save(). Your new class will implement -&gt;save() and within that function you can:


Generate a PDF.
Generate or load a README.txt.
Create a Zip file.
Store that file and attach it to some entity, email it, etc.