Oracle released a extension for JDeveloper, so you can write PHP-code. It’s available for both 9.0.5 and 10.1.2. Just download the extension, and extract the php-addin.jar to the {jdev_root}/jev/lib/ext directory and start JDeveloper (or restart it). In Tools->Preferences you can configure where your PHP-installation is, etc.
Note: the add-in does not seem to work in the 10.1.3 preview of JDeveloper.