Git Product home page Git Product logo

phptools's Introduction

General

Container with tools required to develop php and check code you write. Contains:

  • phpstan
  • phpmd
  • phpcs
  • phpcpd

Usage

build local

  • docker build -t phptools .
  • docker run --rm -it -u ${UID} -v ${PWD}:/app -w /app phptools all

use built image

  • docker pull achertovsky/phptools

Commands applicable

  • all (will launch all tools one by one)
  • phpstan
  • phpcs
  • phpmd
  • phpcpd

all options applicable

  • -m will check files that is modified/added according to git
  • -p test.php will check provided file only

Tools config

You can create your own

config file for phpcs

https://github.com/squizlabs/PHP_CodeSniffer/wiki/Advanced-Usage#using-a-default-configuration-file

config file for phpmd

https://phpmd.org/documentation/creating-a-ruleset.html

config file for phpstan

https://phpstan.org/config-reference#config-file

phptools's People

Contributors

achertovsky avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.