In late december 2008 the Eclipse Foundation and the PDT developer team released the Eclipse PHP Development Platform version 2.0. This release comes with a number of enhancements and improvements to the prior version of PDT.
This talk is about these changes. It also gives you an introduction how to prepare your Eclipse PDT workspace to be an accessible and provding companion for your daily work by integrating xDebug, subversive and phpDocumentor using the external tools platform.
4. Installation
Download latest revision from Eclipse website
(http://www.eclipse.org/pdt/downloads)
▹ All in one (recommended):
provides everything you need to run PDT
▹ PDT Feature / Update Manager:
extends an existing Eclipse, but all dependencies PDT
relies on needs to be installed first.
Extract archive
Copy to favorized location
(e.g. /usr/local/bin/ or another location in your application path)
5. Views & Perspectives
Perspective
(Window > Open Perspektive)
▹ Arrangement of Views:
PHP Perspektive contains e.g. 'PHP Explorer',
'Outline' and 'Project Outline'
Views or Tabs
(Window > Show View)
▹ Viewport providing specific information and/or
functionality
15. Code completion (IV)
(Code Assist)
Documentation hint
▪ declaring the name of a class to be instantiated as the
type of the 'local' class var will enable Eclipse to resolve
the methods of the instantiated class:
class docuDb { class docuHint {
private function connect() { /**
return $this->dbHandler->connect(); * @var docuDb Database handling
} */
} private $dbHandler = NULL;
private function connectToDB() {
$this->dbHandler = &new docuDb();
$dbh = $this->dbHandler->connect();
}
}
16. What's new in PDT 2.0?
Less dependencies
Improved indexing and caching
▹ cleanup of unnecessary depedencies to Java
Mark occurrences
Configurable Buildpathes
Improved code completion
▹ Camelcase matching
17. What's new in PDT 2.0? (II)
Enhanced features to support OOP in PHP
▹ Overwrite Indicators
18. What's new in PDT 2.0? (III)
Enhanced features to support OOP in PHP
▹ Type & name
hierarchies
19. External Tools Framework
Enables Eclipse to run ,stand-alone'
applications
Two broad classes of external tools are
available:
▹ Ant build files
▹ Everything else
21. External Tools Framework (III)
Loaction
Linux / Mac OsX: points to the
phpDocumentor installation
Windows: points to the PHP executable
Working directory
directory to store temporary data
Arguments
Linux/ Mac OsX: command line parameters
to be passed to phpDocumentor.
Windows: path to the phpDocumentor
installation and command line parameters
(e.g.: quot;D:xamppphpphpdocquot; -c quot;$
{project_loc}/doc/tech/config/phpdoc.iniquot;)
32. Subclipse (conflict handling)
Integrated (diff-) editor to resolve conflicts
Support for merging changes which do not
conflict
Preview on the checkout to find conflicts before
updating the sources
33. Questions?
Further questions? Ask me at:
lapistano@php.net
35. License
This set of slides and the source code included
in the download package is licensed under the
Creative Commons Attribution-
Noncommercial-Share Alike 2.0 Generic
License
http://creativecommons.org/licenses/by-nc-sa/2.0/deed.en