See information about the latest product version
Using PHP
You can use the PHP scripting language for message routing and transformation.
Support for the PHP scripting language is available on all operating systems on which WebSphere® Message Broker is supported.
When you use the PHPCompute node, you can customize it to determine the exact processing that it provides. To tailor the behavior of each node, create a PHP file that provides the processing that you require. You can edit your PHP files by using a text editor such as the default Eclipse text editor.
The PHP API simplifies tasks that involve message routing and transformation tasks. These tasks include accessing named elements in a message tree, setting their values, and creating elements, without the need to navigate the message tree explicitly.
- PHP overview
- Creating PHP code for a PHPCompute node
- Using PHP arrays with XML
- Using PHP arrays with JSON
- Deploying code in a PHPCompute node
- Calling Java from PHP
- Creating and transforming messages using a PHPCompute node
- Accessing elements in the message tree from a PHPCompute node
- XML support
- Routing a message using a PHPCompute node
- Accessing other parts of the message tree using the PHPCompute node