Skip to content

rushlow-development/php-tools

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PHP Tools

Static analysis tools for PHP projects

Provides php-cs-fixer, phpstan, psalm, rector, & twigcs as isolated composer installs within your project. This eliminates the need to worry about any underlying conflicts with tool dependencies and your own project dependencies.

Install

All commands are run from your root project directory. e.g. path/to/your-project

  1. Run composer install -d tools

  2. Run git submodule add https://github.com/rushlow-development/php-tools tools. This will "clone" the php-tools repo into path-to-project/tools.

  3. Run tools/bin/install which will run composer upgrade in each of the tool directories.

  4. Copy and paste the contents of scripts.json into your root composer.json file. This will allow you to run composer tools:run from your project root directory.

In the future

I'd like to use composer plugins / custom installers to automate this. Allowing one to run composer require --dev rushlow-development/php-tools and then the tools would be installed as needed...

About

Static Analysis Tooling for PHP Projects

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages