You need to have a deployment.xml for Zend Server and a .htaccess file for Apache.
You need to edit the deployment.xml file according to your needs.
You can optimize the composer autoloading, running the following command:
composer update --no-dev --prefer-dist --optimize-autoloaderYou can execute the zip command to create the .zpk:
zip -r <package>.zpk <project_files> .htaccess deployment.xml vendorYou can upload the <package>.zpk file using the Zend Server management web interface.