Download the PHP package nilportugues/php_forbidden without Composer
On this page you can find all versions of the php package nilportugues/php_forbidden. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download nilportugues/php_forbidden
More information about nilportugues/php_forbidden
Files in nilportugues/php_forbidden
Package php_forbidden
Short Description Looks into the code using a user-defined list of forbidden function in a given path.
License MIT
Homepage http://nilportugues.com
Informations about the package php_forbidden
PHP Forbidden Functions
Why? Because someone should look for forbidden functions that should be avoided in production.
Typical examples are print_r
, var_dump
, exit
and die
function calls.
Installation
Use Composer to install the package:
Usage
It is really this simple:
You can also pipe STDIN in, if you want to use this tool with Gulp for instance:
which means that this also works writing code directly from the shell (if you have some reason to do it):
Configuration file
When run the first time, if no php_forbidden_function.yml
file is found, it will be generated.
A configuration for instance, should formatted as follows:
You can specify an alternate location for the configuration file by passing in the -c
parameter. Example:
Contribute
Contributions to the package are always welcome!
- Report any bugs or issues you find on the issue tracker.
- You can grab the source code at the package's Git repository.
Support
Get in touch with me using one of the following means:
- Emailing me at [email protected]
- Opening an Issue
Authors
License
The code base is licensed under the MIT license.