Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

anjar/docker-php-linter

Repository files navigation

Dockerized PHP Code checker tools

Currently there are 2 library that can be use:


How to use

  • Authenticate with github container.
 export CR_PAT=YOUR_TOKEN_WITH_READ_ACCESS_TO_PACKAGES
 echo $CR_PAT | docker login ghcr.io -u USERNAME --password-stdin
  • Create ecs.php, if you wanna use ECS, see ecs.php.example.

  • Create ruleset.xml, if you want use PHPMD.

  • Ecs example:

     cd /path/to/app
     docker run --rm -v $(pwd):/app ghcr.io/anjar/docker-php-linter ecs check /app/ 
  • PHPMD example:

     cd /path/to/app
     docker run --rm -v $(pwd):/app ghcr.io/anjar/docker-php-linter phpmd /app/ ansi ruleset.xml --exclude vendor/,node_modules/

About

Dockerized PHP Code checker tools

Topics

Resources

License

Stars

Watchers

Forks

Packages

AltStyle によって変換されたページ (->オリジナル) /