For production systems please do not use the master branch. Instead use the latest stable release.
This project was originally hosted at https://code.google.com/p/zend-ibmi-tk-cw/ where older versions still reside. As of Mar. 3, 2014 it is now maintained here.
This IBMiToolkit is a PHP-based front end to XMLSERVICE.
XMLSERVICE and the IBMiToolkit are already shipped with Zend Server. But being open source they can also be downloaded, installed, and upgraded separately.
Versions larger than 1.6 use a classmap (a way to map classes to files for easier finding) to perform autoloading so the user no longer needs to do it. Therefore the IBMiToolkit may be used standalone, or may be pulled into a projects using Composer.
NOTE: The installation methods below are for versions greater than 1.6. Prior versions did not use Composer.
The methods outlined below are intended for Development environments, and possibly Testing and/or Staging environments. However, it is recommended to deploy a prepared package to a Production environment rather than use Composer.
-
Download a IBMiToolkit (tar.gz or zip) stable release. Save downloaded file to desired location. (Ex.- /var/www/html or /usr/local/zend/var/apps/http/{sitename}/80/docroot/0/)
-
Unzip the content to desired location via terminal. (Example path used below will vary.)
$ cd /var/www/html/myproject/ $ tar -xzvf 1.6.0.tar.gz
-
Install Composer (add composer.phar) to project location, along side the file composer.json, as outlined at https://getcomposer.org/download
-
Run Composer install via terminal to gain classmap autoloading.
$ php composer.phar install
-
Include the Composer generated autoloader into PHP application.
require 'vendor/autoload.php';
-
IBMiToolkit may now be used via namespaces, and as outlined at http://files.zend.com/help/Zend-Server-6-IBMi/zend-server.htm#php_toolkit_xml_service_functions.htm
-
If an app already uses Composer simply update the composer.json as specified at https://packagist.org/packages/zendtech/ibmitoolkit
-
If Composer is not used in a project add it as with 3 above. More info can be found at https://getcomposer.org
-
Run Composer update if a project already has a composer.lock generated, or install if things are fresh.
$ php composer.phar update
or
$ php composer.phar install
-
IBMiToolkit may now be used via namespaces, and as outlined at http://files.zend.com/help/Zend-Server-6-IBMi/zend-server.htm#php_toolkit_xml_service_functions.htm