102

phlint / phlint · GitLab

 6 years ago
source link: https://gitlab.com/phlint/phlint
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

Phlint - PHP Code Analyzer

Introduction

Phlint is a tool with an aim to help maintain quality of php code by analyzing code and pointing out potential code issues. It focuses on how the code works rather than how the code looks. Phlint is designed from the start to do deep semantic analysis rather than doing only shallow or stylistic analysis.

Keep in mind that although Phlint is being very actively developed it has still not reached version 1.0 and there is an extensive list of known false positives and incomplete features.

Why Phlint?

As there are already many code analysis tools the question that arises a lot is "Why yet another one?". The reason is because there are not so many analyzers like Phlint for PHP, more info is available on Why Phlint documentation page.

Basic usage

Phlint can be downloaded from the download section and used as a command line utility:

# To download run:
wget https://gitlab.com/phlint/phlint-compiled/raw/master/phlint-0.4.1.phar -O phlint.phar

# To invoke run:
php phlint.phar /path/to/project

Alternatively it can be included in the project through composer:

# To install run:
composer require phlint/phlint

# To invoke run:
./vendor/bin/phlint

Documentation

For a full documentation visit Phlint documentation page. For a contribution guidelines visit Contributing guidelines page.

License

Phlint is licensed under the MIT license.


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK