Connect 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.
Get a good start with 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.
Sample scripts and options
Here are toolkit usage examples. More are added regularly.
Where to find the PHP Toolkit
- XMLSERVICE (back end for the toolkit)
- Comes pre-installed by IBM in the QXMLSERV library
- To view its source code: https://github.com/IBM/xmlservice
- PHP Toolkit (front end)