Skip to content

Instantly share code, notes, and snippets.

@jdeoliveira
Created June 29, 2012 15:41
Show Gist options
  • Save jdeoliveira/3018703 to your computer and use it in GitHub Desktop.
Save jdeoliveira/3018703 to your computer and use it in GitHub Desktop.
PHP scripting component
<scripting:component doc:name="Script">
<scripting:script engine="php">
<scripting:text>
<![CDATA[
<?php
$log->info("Hello from PHP, mule!");
$msg = "Hello from PHP! You requested the path: " . $payload;
return $msg;
?>
]]>
</scripting:text>
</scripting:script>
</scripting:component>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment