PHP create password protected ZIP files?

Does anyone know how to do this?

Creating the zip file is simple enough, and I’d guess using the command line might be the best way to add a password but im not sure how to go about this?

Any leads? Tips? Advice?

Zaid