This is a set of tools for auditing PHP projects and repositories.
This command allows you to visualize a git diff in formatted text, taking advantage of the inherent power of the native git diff
command and HTML.
- Clone the script in your public html folder.
- Run it:
- From your browser: Access to
http://localhost/git_diff_renderer/git_diff_renderer.php?path=path/to/your/git/repo/folder
. Replacelocalhost
by a valid host. - From command line:
php -f git_diff_renderer.php path=path/to/your/git/repo/folder > output.html
- From your browser: Access to
You can also process a diff file (a file with the output of a previous git diff
execution) passing the file path instead of a directory.
Check your composer.lock dependencies and its required versions in a tree view.
- From your console, run:
php show_composer_lock_reqs.php dev|prod
, use dev or prod.
or
php show_composer_lock_reqs.php dev|prod /directory/of/composer_lock/
, note the slash at the end
Analizes a directory and extract useful metrics (top files per size and per extension, among others).
- From your console, run:
php project_metrics.php /my/base/dir/