2017 © Pedro Peláez
 

util phpsa

PHPSA aims to bring complex static analysis for PHP applications and libraries.

image

ovr/phpsa

PHPSA aims to bring complex static analysis for PHP applications and libraries.

  • Wednesday, April 11, 2018
  • by ovr
  • Repository
  • 34 Watchers
  • 636 Stars
  • 9,853 Installations
  • PHP
  • 3 Dependents
  • 0 Suggesters
  • 43 Forks
  • 64 Open issues
  • 22 Versions
  • 9 % Grown

The README.md

Logo, (*1)

PHPSA - Smart Analyzer for PHP

Build Status Scrutinizer Code Quality Code Coverage Latest Stable Version License, (*2)

PHPSA is a development tool aimed at bringing complex analysis for PHP applications and libraries., (*3)

P.S This software is currently in early alpha state, any contributions/stars will be awesome., (*4)

Components

  • [X] Core - Component containing definitions and other core files
  • [X] Compiler - Component to compile expression(s) and statement(s) from an abstract syntax tree
  • [X] Analyzer - Component doing various checks on your files
  • [X] ControlFlow - Component for ControlFlow (WIP)

Installation (more)

The recommended way to install phpsa is via Composer., (*5)

Run php composer.phar require ovr/phpsa or add a new requirement in your composer.json., (*6)

``` json { "require": { "ovr/phpsa": "*" } }, (*7)


### How to use <sub>[(more)](/docs/02_Usage.md)</sub> ```sh $ ./bin/phpsa check fixtures/ Syntax error: Syntax error, unexpected T_RETURN on line 11 in fixtures/simple/syntax/Error2.php $b = $a + 1; 123123 Notice: Constant BBBB does not exist in self scope in fixtures/simple/undefined/Const.php on 29 [undefined-const] return self::BBBB; Notice: You are trying to cast 'string' to 'string' in fixtures/simple/code-smell/StandardFunctionCall.php on 16 [stupid.cast] return (string) json_encode(array( Notice: Missing docblock for callStaticMethodBySelf() method in fixtures/Compiling/Expression/StaticCall.php on 18 [missing-docblock] public static function callStaticMethodBySelf()

Requirements

PHP >= 7.0, but you can check files that use PHP >= 5.2 with this., (*8)

Documentation

See our documentation in case you need more information on some topic., (*9)

Contributing

Check our Contributing Guide to see how you can help., (*10)

Sponsors

Thanks to our sponsors and supporters:, (*11)

JetBrains

LICENSE

This project is open-sourced software licensed under the MIT License., (*12)

See the LICENSE file for more information., (*13)

The Versions

13/09 2015

dev-fork-threads

dev-fork-threads

Static Analysis for PHP

  Sources   Download

MIT

The Requires

 

The Development Requires

29/06 2015

0.0.6

0.0.6.0

Static Analysis for PHP

  Sources   Download

MIT

The Requires

 

The Development Requires

28/06 2015

0.0.5

0.0.5.0

Static Analysis for PHP

  Sources   Download

MIT

The Requires

 

The Development Requires

26/06 2015

0.0.4

0.0.4.0

Static Analysis for PHP

  Sources   Download

MIT

The Requires

 

The Development Requires

25/06 2015

0.0.3

0.0.3.0

Static Analysis for PHP

  Sources   Download

MIT

The Requires

 

The Development Requires

22/06 2015

0.0.2

0.0.2.0

Static Analysis for PHP

  Sources   Download

MIT

The Requires

 

22/06 2015

0.0.1

0.0.1.0

Static Analysis for PHP

  Sources   Download

MIT

The Requires