Skip to content

heimrichhannot/build-tools

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Heimrich & Hannot Build Tools

Eine Sammlung von Build-Tools für PHP-Projekte.

Installation

Fügen Sie das Package zu Ihrem Projekt hinzu:

composer require --dev heimrichhannot/build-tools

Verwendung

Nach der Installation ist das hhbt Command in vendor/bin verfügbar:

vendor/bin/hhbt <tool> <bundle-name> [options]

Verfügbare Tools

  • phpstan - Statische Code-Analyse
  • rector - Code-Refactoring und Modernisierung

Beispiele

PHPStan im Bundle contao-dav-components-bundle ausführen:

vendor/bin/hhbt phpstan contao-dav-components-bundle

Rector im Bundle mit Dry-Run ausführen:

vendor/bin/hhbt rector contao-dav-components-bundle --dry-run

Bundle-Suche

Das Tool sucht automatisch in folgenden Verzeichnissen nach dem angegebenen Bundle:

  • {workspace}/{bundle-name}
  • {workspace}/Kunden/github/{bundle-name}
  • {workspace}/Kunden/dav/{bundle-name}
  • {workspace}/github/{bundle-name}

Konfiguration

Das Tool sucht automatisch nach Konfigurationsdateien:

PHPStan:

  1. {bundle}/phpstan.neon
  2. {bundle}/phpstan.php
  3. {build-tools}/tools/phpstan/config.neon (Fallback)

Rector:

  1. {bundle}/rector.php
  2. {build-tools}/tools/rector/rector.php (Fallback)

Entwicklung

Neue Tools hinzufügen

Fügen Sie eine neue Funktion in bin/hhbt.php hinzu und erweitern Sie den Switch-Case im Hauptscript.

About

A collection of build tools for PHP projects.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages