Progress Bar
Since version 2.12, there is a new progress bar (ALA PHPUnit).
PHP_CompatInfo 2.12.0 by Laurent Laville ....CC...................................................... 60 / 128 ( 46%) ....C..C..........................................C....C.... 120 / 128 ( 93%) .C.....C
-
each
C
character tell us that there is a source file with conditional code.
With version 3.2, the progress bar (ALA Symfony Console Progress Helper)
is activated with the first verbose level (-v
).
For example :
$ phpcompatinfo -v analyser:run <SOURCE>
Renders
3/128 [>---------------------------] 0% Elapsed: 2 secs
References
If we want to display list of references supported, here is how to do with both versions :
$ phpcompatinfo list-references
$ phpcompatinfo reference:list
Now, if you want to details each reference one by one identified by its name (<REF>
in following examples), and got :
-
Extensions
$ phpcompatinfo list --reference=ALL extensions or $ phpcompatinfo list-extensions --reference=ALL
$ phpcompatinfo reference:list
-
Interfaces
$ phpcompatinfo list --reference=ALL interfaces <REF> or $ phpcompatinfo list-interfaces --reference=ALL <REF>
$ phpcompatinfo reference:show --interfaces <REF>
-
Classes
$ phpcompatinfo list --reference=ALL classes <REF> or $ phpcompatinfo list-classes --reference=ALL <REF>
$ phpcompatinfo reference:show --classes <REF>
-
Functions
$ phpcompatinfo list --reference=ALL functions <REF> or $ phpcompatinfo list-functions --reference=ALL <REF>
$ phpcompatinfo reference:show --functions <REF>
-
Constants
$ phpcompatinfo list --reference=ALL constants <REF> or $ phpcompatinfo list-constants --reference=ALL <REF>
$ phpcompatinfo reference:show --constants <REF>
-
INI entries
$ phpcompatinfo reference:show --ini <REF>
And if you want to filter results on PHP version, do for example :
$ phpcompatinfo list --reference=ALL classes <REF> --filter-version="php_5.1.0" --filter-operator="ge"
$ phpcompatinfo reference:show --classes <REF> --php=">= 5.1.0"
Print parses results
Where <SOURCE>
identify the data source, directly in CompatInfo 2.26,
and via the JSON configuration file in version 3.2
$ phpcompatinfo print --reference=ALL --recursive <SOURCE> or $ phpcompatinfo print --reference=ALL --recursive --report summary <SOURCE>
$ phpcompatinfo analyser:run <SOURCE> or $ phpcompatinfo analyser:run <SOURCE> summary
And with additionals reports :
-
extension
$ phpcompatinfo print --reference=ALL --recursive --report extension <SOURCE>
$ phpcompatinfo analyser:run <SOURCE> extension
-
namespace
$ phpcompatinfo print --reference=ALL --recursive --report namespace <SOURCE>
$ phpcompatinfo analyser:run <SOURCE> namespace
-
trait
$ phpcompatinfo print --reference=ALL --recursive --report trait <SOURCE>
$ phpcompatinfo analyser:run <SOURCE> trait
-
interface
$ phpcompatinfo print --reference=ALL --recursive --report interface <SOURCE>
$ phpcompatinfo analyser:run <SOURCE> interface
-
class
$ phpcompatinfo print --reference=ALL --recursive --report class <SOURCE>
$ phpcompatinfo analyser:run <SOURCE> class
-
function
$ phpcompatinfo print --reference=ALL --recursive --report function <SOURCE>
$ phpcompatinfo analyser:run <SOURCE> function
-
constant
$ phpcompatinfo print --reference=ALL --recursive --report constant <SOURCE>
$ phpcompatinfo analyser:run <SOURCE> constant
-
global
$ phpcompatinfo print --reference=ALL --recursive --report global <SOURCE>
-
condition
$ phpcompatinfo print --reference=ALL --recursive --report condition <SOURCE>
-
token
$ phpcompatinfo print --reference=ALL --recursive --report token <SOURCE>
-
xml
$ phpcompatinfo print --reference=ALL --recursive --report xml <SOURCE>
-
source
$ phpcompatinfo -v print --reference=ALL --report source <SOURCE>
$ phpcompatinfo provider:display <SOURCE>