walkeralencar / ci-php-analyzer
Advanced Static Analysis of and Auto-Fixer for PHP Code
dev-master
2014-05-13 18:06 UTC
Requires
- php: >=5.4
- doctrine/common: ~2.3
- doctrine/dbal: *
- doctrine/orm: *
- jms/composer-deps-analyzer: ~0.1
- jms/parser-lib: 1.*
- jms/php-manipulator: dev-master
- jms/serializer: dev-master
- nikic/php-parser: dev-master
- phpcollection/phpcollection: 0.2.*
- phpoption/phpoption: 1.*
- psr/log: 1.0.*
- symfony/config: 2.*
- symfony/console: 2.*
- symfony/filesystem: 2.*
- symfony/finder: 2.*
- symfony/process: 2.*
- walkeralencar/ci-utils: dev-master
Requires (Dev)
- ext-pdo: *
- ext-pdo_mysql: *
- ext-pdo_sqlite: *
- doctrine/data-fixtures: 1.0.*@dev
This package is not auto-updated.
Last update: 2024-11-23 18:02:39 UTC
README
The PHP Analyzer performs static analysis on your source code to help you find errors and bugs, and also has built-in heuristics to automatically fix some of them.
Learn more in the documentation.
Installation
Please note that PHP Analyzer itself needs a PHP 5.4 runtime; this requirement only applies to the system that is running PHP Analyzer, not the code that is analyzed.
Standalone
PHPAnalyzer can be installed via composer very easily:
composer create-project scrutinizer/php-analyzer:dev-master
Embedded
PHPAnalyzer can also be embedded in an existing project:
{ "repositories": [ { "type": "vcs", "url": "https://github.com/schmittjoh/PHP-Parser" } ], "require-dev": { "scrutinizer/php-analyzer": "*@dev", "scrutinizer/utils": "*@dev", "jms/php-manipulator": "*@dev", "nikic/php-parser": "*@dev" } }
Usage
Via The Command Line
php bin/phpalizer run some-dir
The CLI is especially useful to analyze smaller libraries, or for testing purposes.