Open Source PHP Toolkit for IBM i

About the toolkit

This open source, free toolkit helps PHP applications connect to resources on IBM i (formerly iSeries, System i, i5…). The toolkit has been jointly developed by Zend and IBM. It’s sometimes known as the “new PHP Toolkit” or even “XML Toolkit,” because the PHP front end and XMLSERVICE back end communicate internally via XML (but no XML knowledge is needed). I am the toolkit’s project manager and its co-developer with IBM’s Tony Cairns.

Feel free to contact me about the toolkit via email, my contact page, or on the Zend forum.


Zend Server and official toolkit PTF: Go to the Zend Server download page. Either download Zend Server 8.x, which has the latest official toolkit release, or if you’re working with Zend Server 5.x,  click “download older versions”, then the IBM i tab, and then download the Zend Server update, hotfixes, and the latest official toolkit release, labeled “XML Toolkit for IBM i Update.” Get it here: Zend Server download page

Recent open source release: XMLSERVICE 1.9.2 and PHP Toolkit 1.5.0
Even newer PHP front-end release on Github: PHP Toolkit 1.6.1 on Github

Toolkit documentation on Official documentation: Open Source PHP Toolkit for IBM i

Zend Forum: a community resource for the toolkit: New toolkit forum at

Podcast and webinar:
Listen to my podcast about the December, 2012 release
Watch my Zend webinar about the toolkit

Toolkit headquarters is hosted on the Young i Professionals site, an open source wonderland for IBM i:

A basic toolkit article that I wrote:
New PHP Toolkit: a Perfect Match for RPG

Slides for my toolkit presentation, the most information in one place about using the PHP toolkit. Also available as PDF on my presentations page.

7 Responses to Open Source PHP Toolkit for IBM i

  1. Could you recommend a site that explains and gives example of passing multi occurrence parameter to and RPG program and return parameters. We are stuck at work and do not know where to look

  2. Klaus-Peter Luttkus says:

    Hello Alan, last year I attended one of your presentations on PHP on IBM i. Very interesting. I now have a problem with the API Toolkit, and so farI didn’t find any answers. Is there a way to declare parameters für the PgmCall method by way of using PCML? A short answer would be appreciated.

    Regards from Germany

  3. Alan Seiden says:

    Hi, Peter,

    I’m working on a toolkit update to support PCML with PgmCall. Do you use PCML heavily?

    PCML is currently supported only by the compatibility wrapper [CW], but because new projects should use the new toolkit API (PgmCall, etc.) instead of CW, I intend to add PCML support for PgmCall.

    Tell me more about your requirements if you would like, perhaps through my contact page.

    Best regards,

  4. Praveen says:

    I am trying to connect ibm iseries using zend framework 2 through localhost. I have configured database details in global.php now need to call stored procedure using database object. I have gone through the questions answered by you on stackoverflow but I am unable to do anything and I have blocked.
    Can please help me in this,

  5. Avrohom Notik says:

    If You have problems with passing parameters, just write to database file, and the target program will read it. Just as simple as that.

Leave a Reply

Your email address will not be published. Required fields are marked *