Eclipse – PHP Tool Integration (PTI) Sven Kiera, TWT Interactive GmbH

Preview:

Citation preview

Eclipse – PHP Tool Integration (PTI)

Sven Kiera, TWT Interactive GmbH

Sven Kiera

Web Entwickler bei TWT Interactive GmbH in Düsseldorf

PHP und Java seit 1998 PHP5 Zend Certified Engineer Certified MySQL 5.0 Developer Autor von PHP Tool Integration

(PTI)

Sven Kiera: Eclipse – PHP Tool Integration (PTI)

PHP Tools

Sven Kiera: Eclipse – PHP Tool Integration (PTI)

PHP Tools

PHPUnitPHP DependPHP Mess DetectorPHP_CodeSnifferPHP Copy/Paste DetectorPHPDocumentorPhing…

Sven Kiera: Eclipse – PHP Tool Integration (PTI)

„Einsatzgebiete“ von PHP ToolsKonsoleSVN HooksContinuous Integration Server

Sven Kiera: Eclipse – PHP Tool Integration (PTI)

Unterstützung in Editoren / IDEsSo gut wie nicht vorhanden

Einzige Ausnahme PHPUnitProblem: Editoren / IDEs sind nicht in

PHP geschriebenAlternative: manuelle Ausführung

Sven Kiera: Eclipse – PHP Tool Integration (PTI)

Eclipse - PHP Tool Integration (PTI)

Sven Kiera: Eclipse – PHP Tool Integration (PTI)

Eclipse – PHP Tool Integration (PTI) Eclipse Plugins für Eclipse PDT 2.x und Zend Studio

7.x Ziel: Direkte Nutzung von PHP Tools in Eclipse PDT Aktuelle Unterstützung:

PHP_CodeSniffer PHPDepend PHPUnit PHP Copy / Paste Detector

PEAR Verwaltung inkl. aktueller PEAR Bibliothek Erweitert Eclipse DLTK External Checker um

direkte Nutzung von PHP Skripten Open Source (EPL)

Sven Kiera: Eclipse – PHP Tool Integration (PTI)

PTI - PHP_CodeSniffer

Sven Kiera: Eclipse – PHP Tool Integration (PTI)

PHP_CodeSniffer

PHP Tool zum ausspüren von Abweichungen vom Coding Standard Ausführung per Konsole Integration als SVN Hook Integration in Continuous Integration

Server

Sven Kiera: Eclipse – PHP Tool Integration (PTI)

PTI – PHP_CodeSniffer (v1.2.4)Manuelle PrüfungAutomatische Prüfung per ValidatorMarkierung von Fehler und

Warnungen in DateienPrüfung mit mehreren StandardsBenutzung eigener StandardsFilterung von Dateien und Sniffs

Sven Kiera: Eclipse – PHP Tool Integration (PTI)

PTI - Konfiguration

Sven Kiera: Eclipse – PHP Tool Integration (PTI)

PTI – Manuelle Prüfung

Sven Kiera: Eclipse – PHP Tool Integration (PTI)

PTI – Fehlermarker

Sven Kiera: Eclipse – PHP Tool Integration (PTI)

PTI – Validator

Sven Kiera: Eclipse – PHP Tool Integration (PTI)

PTI - PHP Depend

Sven Kiera: Eclipse – PHP Tool Integration (PTI)

PHP Depend

PHP Tool zur Generierung von Metriken Ausführung per Konsole Integration in Continuous Integration

Server

Sven Kiera: Eclipse – PHP Tool Integration (PTI)

PTI – PHP Depend (v0.4.0 DEV)Manuelle PrüfungAutomatische Prüfung per ValidatorKonfiguration von Fehlerbereiche für

MetrikenMarkierung von Fehler und

Warnungen in DateienVisuelle Anzeige der MetrikenAnzeige von Graphen

Sven Kiera: Eclipse – PHP Tool Integration (PTI)

PTI – Konfiguration

Sven Kiera: Eclipse – PHP Tool Integration (PTI)

PTI – Manuelle Ausführung

Sven Kiera: Eclipse – PHP Tool Integration (PTI)

PTI – Visuelle Anzeige

Sven Kiera: Eclipse – PHP Tool Integration (PTI)

PTI – Validator

Sven Kiera: Eclipse – PHP Tool Integration (PTI)

PTI - PHPUnit

Sven Kiera: Eclipse – PHP Tool Integration (PTI)

PHP Unit

Bekannteste xUnit Test Framework zum Testen von PHP-Skripten Ausführung per Konsole Integration in Continuous Integration

Server Einfache Integration in vielen Editoren

und IDEs

Sven Kiera: Eclipse – PHP Tool Integration (PTI)

PTI – PHPUnit (v0.4.0 DEV)

Einfache Erkennung von Klassen und zugehörigen Tests

Manuelle PrüfungAutomatische Ausführung per ValidatorMarkierung von Fehler und Warnungen in

DateienVisuelle Anzeige der TestergebnisseGenerierung Test Klassen aus PHP KlassenGenerierung PHP Klassen aus Test Klassen

Sven Kiera: Eclipse – PHP Tool Integration (PTI)

PTI - Konfiguration

Sven Kiera: Eclipse – PHP Tool Integration (PTI)

PTI – Manuelle Test Ausführung

Sven Kiera: Eclipse – PHP Tool Integration (PTI)

PTI – Visuelle Anzeige

Sven Kiera: Eclipse – PHP Tool Integration (PTI)

PTI – Test Klasse Generierung

Sven Kiera: Eclipse – PHP Tool Integration (PTI)

PTI – PHP Klasse Generierung

Sven Kiera: Eclipse – PHP Tool Integration (PTI)

Ausblick

Sven Kiera: Eclipse – PHP Tool Integration (PTI)

Ausblick PHP_CodeSniffer

Mehrfach Konfiguration für Standards Unterstützung für Rule Set Dateien (Wizard, Import,

Export)

PHPDepend Erweiterte Konfiguration für Metriken und Fehlerbereiche

PHPUnit Synchronisation Test Klasse <-> PHP Klasse Echtzeit Anzeige

Sonstiges Evaluierung neuer Tools: z.B. PHPMD, PHP_UML

Sven Kiera: Eclipse – PHP Tool Integration (PTI)

Weitere Informationen Eclipse – PHP Tool Integration (PTI)

Homepage: http://www.phpsrc.org SourceForge: http://sourceforge.net/projects/pti/ Eclipse Marketplace:

http://marketplace.eclipse.org/content/pti-php-tool-integration Update Site: http://www.phpsrc.org/eclipse/pti/ Mail: sven@kiera.de

PHP_CodeSniffer Homepage: http://pear.php.net/package/PHP_CodeSniffer/ Blog: http://www.squizlabs.com/php-codesniffer

PHPDepend Homepage: http://pdepend.org

PHPUnit Homepage: http://www.phpunit.de

Sven Kiera: Eclipse – PHP Tool Integration (PTI)

Thanks for listening!

Sven Kiera: Eclipse – PHP Tool Integration (PTI)

Recommended