1.0.8 • Published 7 years ago

simplephplint v1.0.8

Weekly downloads
4
License
MIT
Repository
github
Last release
7 years ago

simplephplint

simplephplint is a node wrapper around the native php linter.

Usage

CLI

$ npm i -g simplephplint
$ simplephplint '**/*.php'

Paths and filenames are parsed using globby, so the following would work as well:

$ simplephplint '**/*.php' '!vendor/**'

Configuration

After running simplephplint --init, you'll have a .phplintrc.json file in your directory. In it, you'll see some rules configured like this:

{
    "input": "./**/*.php",
    "filter": [],
    "ignoreComments": false,
    "syncLimit": 20,
    "rules": {
        "no_log": [
            "var_dump",
            "print_r"
        ]
    }
}

Issues/Contribution

You can open an issue on the github repo, or contact me directly by email.

Help

Please, if you are using this package, let me know. I am interested to know what you think of it, even if it was on a tiny side-project.

License

MIT

1.0.8

7 years ago

1.0.7

7 years ago

1.0.6

7 years ago

1.0.5

7 years ago

1.0.4

7 years ago

1.0.3

7 years ago

1.0.2

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago