Skip to content
Chuk Shirley edited this page May 31, 2016 · 3 revisions

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.

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/)

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';

IBM i Toolkit 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

Integrated Method

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

The IBM i Toolkit 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

Clone this wiki locally