LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

phan

PHP static analyzer

TLDR

Analyze PHP project
$ phan
copy
Analyze specific directory
$ phan --directory [src/]
copy
Generate baseline
$ phan --save-baseline [.phan/baseline.php]
copy
Use baseline
$ phan --load-baseline [.phan/baseline.php]
copy
Output format
$ phan --output-mode [json]
copy

SYNOPSIS

phan [options]

DESCRIPTION

phan is a PHP static analyzer. Finds bugs through type checking.The tool performs deep analysis. Supports PHP 7/8 features.

PARAMETERS

--directory DIR

Directory to analyze.
--config-file FILE
Configuration file.
--save-baseline FILE
Save baseline.
--load-baseline FILE
Load baseline.
--output-mode FORMAT
Output format.
--help
Display help.

INSTALL

yay -S phan
copy

CAVEATS

Requires PHP with AST extension. Configuration recommended.

HISTORY

Phan was created for advanced PHP static analysis with type inference.

SEE ALSO

phpstan(1), psalm(1), php(1)

Braincup
Open source brain training for math, memory and focus
Braincup mini-games
41 mini-games · Apache-2.0
No ads · No tracking
Play in browser
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid
276 stars
From the maker of Linux Command Library
Copied to clipboard
Braincup
Open source brain training for math, memory and focus. 41 mini-games, from mental arithmetic to Sudoku, N-Back and Solo Chess.
Apache-2.0 licensed · No ads · No tracking · No account
From the maker of Linux Command Library
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid