Skip to main content

Notice: this Wiki will be going read only early in 2024 and edits will no longer be possible. Please see: https://gitlab.eclipse.org/eclipsefdn/helpdesk/-/wikis/Wiki-shutdown-plan for the plan.

Jump to: navigation, search

Gsoc/2010/proposals/E4 PHP

Revision as of 05:47, 9 April 2009 by Wcandillon.gmail.com (Talk | contribs) (New page: == PHP support into e4 == This is a 2009 Google Summer of Code project proposal. === Project description === The aim of this project is to leverage PHP/Java bridge for adding a PHP support...)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

PHP support into e4

This is a 2009 Google Summer of Code project proposal.

Project description

The aim of this project is to leverage PHP/Java bridge for adding a PHP support into e4, the next generation of the Eclipse Platform. e4 has already a support for writing plug-ins in JavaScript using Rhino capabilities to interact between JavaScript and Java. The PHP Bundles and the Extension Registry Support will be identical to the one for the JavaScript support. The second step is to make this project get real around the PHP community by extending PDE to support PHP Plug-ins. This includes:

  • Manifest validation
  • Wizards for PHP Plug-in creation
  • Static code Analysis to resolve bundle/package dependencies
  • Writing extension points in PHP
  • Evangelism to the PHP community through a screencast.


The PHP Development Toolkit (PDT) project provides Eclipse for the PHP language. PDT and DLTK combined define more than 30 extension points, allowing PHP developers to integrate their own PHP frameworks and tools. However, PHP developers are often not familiar with Java and they need to use PHP not only for dynamic capabilities but also to integrate PHP-written libraries inside Eclipse. Using PHP as a runtime language for plug-in is also a great opportunity to script development workflows. The aim of this project is to leverage PHP/Java bridge for adding a PHP support into e4, the next generation of the Eclipse Platform and to extend PDE to support the creation of PHP plug-ins.

Using the e4 recipe

E4 JavaScript support defines OSGi bundles in JSON format that can be used to define a JavaScript bundle's metadata. We can reuse this mechanism for PHP bundles:

{
 "BundleSymbolicName":"org.eclipse.e4.php.examples.helloworld.phpbundle",
 "BundleVersion":"1.0",
 "ScriptPath":"helloworld.js"
}

You could reference your PHP bundles using the "PHP-Bundle" header in the OSGi manifest. For example:

PHP-Bundle: scripts/bundle.json

PHP and Java chatting together

Schedule of Code and Deliverables

The project timeline is available on Google Calendar [1]

Back to the top