PHP Toolkit for IBM iConnect your PHP applications to resources on your IBM i (evolved from AS/400, iSeries) using the open source (free!) PHP Toolkit for IBM i.

Co-developed by Alan Seiden and maintained by the IBM i community, the toolkit is also known as the XML Toolkit because the PHP front end and the XMLSERVICE RPG back end communicate via XML.

Start Here with Alan’s Presentation Slides

Get the most complete information about the PHP Toolkit by reading Alan’s presentation Bring RPG/COBOL Business Logic to the Web with the PHP Toolkit (PDF format). Note: these slides date from about 2017 and don’t reflect RPM-based PHP paths and other changes.

Other Toolkit Resources

Install the PHP Toolkit: a myriad of ways

  • Download from
  • Install via Composer (“composer require zendtech/ibmitoolkit”)
  • The toolkit is also installed with Zend Server
  • Note: XMLSERVICE is now shipped by IBM in the QXMLSERV library

9 replies
  1. Alessandro Scolavino
    Alessandro Scolavino says:

    I tried xml toolkit but it seems it doesn’t support large query, i tried to fetch 10000 records and it generate an error on AS400, is there some limitation that you are aware of?

  2. Avrohom Notik
    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.

  3. Praveen
    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,

  4. Alan Seiden
    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,

  5. Klaus-Peter Luttkus
    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


Leave a Reply

Want to join the discussion?
Feel free to contribute!

Leave a Reply

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

For security, use of Google's reCAPTCHA service is required which is subject to the Google Privacy Policy and Terms of Use.

I agree to these terms.

This site uses Akismet to reduce spam. Learn how your comment data is processed.