Giter Site home page Giter Site logo

php-audit-tools's Introduction

PHP Audit tools

This is a set of tools for auditing PHP projects and repositories.

Available tools

GIT diff renderer

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.

Usage

  1. Clone the script in your public html folder.
  2. Run it:
    • From your browser: Access to http://localhost/git_diff_renderer/git_diff_renderer.php?path=path/to/your/git/repo/folder. Replace localhost by a valid host.
    • From command line: php -f git_diff_renderer.php path=path/to/your/git/repo/folder > output.html

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.

screenshot

Show composer.lock requirements

Check your composer.lock dependencies and its required versions in a tree view.

Usage

  1. 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

Get project metrics

Analizes a directory and extract useful metrics (top files per size and per extension, among others).

Usage

  1. From your console, run:
  • php project_metrics.php /my/base/dir/

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.