One of the open source components we’ve built at
Seiden Group is a new extension to enhance PHP’s integration with IBM i. Show Although most business requirements are met by the existing ibm_db2 and PDO_ODBC extensions plus the PHP Toolkit, the new We’ve built six functions thus far, with the possibility of more in the future. Let us know what you think. What can I do with the IBM i extension?
Detailed documentation can be found on the php-ibmi extension Github page. Let’s take a quick look at what each of these functions can do. Character set helpOur
support team uses the To show information about character sets and encoding, we created a PHP script called encoding.php:
Sample output:
Run CL commands directly in your PHP jobThe functions Why does this matter? Let’s say you wanted to change some job attributes by running The IBM i extension adds APIs (analogous to PHP’s Get IFS file informationibmi_stat() gets information about an IFS file. One useful item is the CCSID of the file. This function is akin to the ILE stat() function. Where can I get it?New installations of CommunityPlus+ PHP have included php-ibmi by default since November 2021. If you have an existing install without this extension, run Those wishing to view PHP IBM i extension source code, or even build from source, can find our PHP IBM i extension on GitHub. We’d like to hear from you about what you’d like to see in this extension; anything on the i you wish you could do from PHP? |