PHP Toolkit for i5/OS

The purpose of the PHP ToolKit is to allow Zend Core for i5/OS to interact with native i5/OS services.

The PHP APIs enable PHP programs to access System objects such as RPG/COBOL/Java programs, CL commands, Data Queue, Spooled file, etc. These APIs expose the PHP Object Oriented programming interface.

From an architectural standpoint, PHP functionality is implemented as a PHP extension that is enabled during the Zend Core for i5/OS installation.

The extension implements the client side of the interface.

A server, implementing the native i5/OS interface, is installed on the i5/OS machine as a native i5/OS service.

 

PHP Toolkit Classes (sample)

The PHP Toolkit also offers sample classes for developers who are comfortable using object oriented (OO) methods in PHP.

PHP Toolkit classes can be found in the directory /www/zendcore/i5Toolkit_library.

This directory contains the i5 Toolkit classes file "Toolkit_classes.php", and the "demo_for_toolkit_classes.php" sample program, which utilizes the Toolkit classes.

The i5 Toolkit class library contains the following classes:

 INSTALLATION

No special installation is required, just place the i5 Toolkit class file "Toolkit_classes.php" in the same directory as your PHP program.

 

Zend Studio IDE templates

Zend Studio IDE for i5/OS comes complete with PHP Toolkit function Code Assist and Templates containing PHP API Toolkit functions.

For a full list of these functions, see Appendix F - I5 Toolkit Templates.

 

 

Related Links

Related Links:

PHP Toolkit Functions

PHP Toolkit Data Description

Program Samples

Appendix F - I5 Toolkit Templates