, (*1)
For production systems please do not use the master branch. Instead use the latest
stable release., (*2)
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., (*3)
Introduction
This IBMiToolkit is a PHP-based front end to XMLSERVICE., (*4)
Zend Server
XMLSERVICE and the IBMiToolkit are already shipped with Zend Server. But being
open source they can also be downloaded, installed, and upgraded separately., (*5)
Autoloading
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., (*6)
NOTE: The installation methods below are for versions greater than 1.6. Prior
versions did not use Composer., (*7)
Installation
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., (*8)
Standalone Method
-
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/), (*9)
-
Unzip the content to desired location via terminal. (Example path used below will vary.), (*10)
$ 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, (*11)
-
Run Composer install via terminal to gain classmap autoloading., (*12)
$ php composer.phar install
-
Include the Composer generated autoloader into PHP application., (*13)
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, (*14)
Integrated Method
-
If an app already uses Composer simply update the composer.json
as specified at https://packagist.org/packages/zendtech/ibmitoolkit, (*15)
-
If Composer is not used in a project add it as with 3 above. More info can be
found at https://getcomposer.org, (*16)
-
Run Composer update if a project already has a composer.lock generated, or install if things are fresh., (*17)
$ php composer.phar update
or, (*18)
$ 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, (*19)