@@ -136,6 +136,29 @@ It will output the name of the newly created package file. You have to use this
136136or update an existing application on Zend Server. If you want to use other name for
137137the output file you can use the --name="{desired-zpk-name}" option.
138138
139+ #### Composer Integration ####
140+ There is experimental integration with composer that allows you to download the dependant packages, as described in composer.json,
141+ download them and convert them to zpk files. The above command with composer integration will look like this
142+
143+ ```
144+ php bin/zs-client.php packZpk --folder="<folder-where-the-PHP-code-is>" \
145+ --destination="<folder-where-the-package-will-be-created>" \
146+ --composer
147+ ```
148+ The result from the command will be list of packages in the order that they have to be installed (top first, bottom last).
149+ Example:
150+
151+ /tmp/zendframework.zend-stdlib-2.2.4.zpk
152+ /tmp/zendframework.zend-console-2.2.4.zpk
153+ /tmp/zendframework.zend-file-2.2.4.zpk
154+ /tmp/zendframework.zend-mvc-2.2.4.zpk
155+ /tmp/zendframework.zend-text-2.2.4.zpk
156+ /tmp/zendframework.zend-math-2.2.4.zpk
157+ /tmp/zendframework.zend-json-2.2.4.zpk
158+ /tmp/zendframework.zend-serializer-2.2.4.zpk
159+ /tmp/zenddevops.webapi-dev-dev.zpk
160+ /tmp/AddYourUniqueApplicationName-1.0.0.zpk
161+
139162### Deploy Package
140163Run the following command to install a package.
141164```
@@ -153,6 +176,22 @@ php bin/zs-client.php installApp --zpk="<location-of-the-zpk-file>" \
153176 --baseUri="<baseUri>" \
154177 --userParams="APPLICATION_ENV=staging&DB_TYPE=mysql"
155178```
179+ #### Deploy Multiple Packages
180+ If you use the composer integration then packZpk can create multiple packages, instead of one. Below is a suggestion how you can
181+ deploy these newly created packages in the correct order.
182+
183+ ```
184+ ZPKS=`php bin/zs-client.php packZpk --folder="<folder-where-the-PHP-code-is>" \
185+ --destination="<folder-where-the-package-will-be-created>" \
186+ --composer`;
187+
188+ for i in $ZPKS; do
189+ php bin/zs-client.php installApp --zpk="$i" \
190+ --target="<the-name-of-the-target>" \
191+ --baseUri="<baseUri>" \
192+ --userParams="APPLICATION_ENV=staging&DB_TYPE=mysql"
193+ done;
194+ ```
156195
157196HTTP tuning
158197============
@@ -171,6 +210,12 @@ php bin/zs-client.php getSystemInfo --target="<name-of-the-target> \
171210In most cases the HTTPS access to your Zend Server will use self-signed certificate.
172211In order to instruct the client to accept the SSL certificate you can do the following.
173212
213+ ```
214+ php bin/zs-client.php getSystemInfo --target="<name-of-the-target> \
215+ --http="sslverify=0"
216+
217+ ```
218+
174219### Combining Multiple HTTP options
175220If you want to combine multiple HTTP options in the same request then you can format the value of the http parameter as a valid
176221HTTP query string. Request with timeout of 40 seconds and acceptance of self-signed certificates will look like this.
0 commit comments