Progress Bar
With adoption of Symfony/Console 2.5 or greater, the progress bar feature is used instead of the progress bar helper.
The progress bar is displayed only if you invoke commands with the --progress
option.
For example :
$ phpcompatinfo --progress analyser:run <SOURCE>
Renders depends of verbosity level.
For example, on verbose level 1, progress will be displayed as a throbber:
8 [-------->-------------------] 1 sec
For example, on verbose level 2:
7 1 sec File Bartlett\CompatInfo\Console\Formatter\CompatibilityOutputFormatter.php in progress...
For example, on verbose level 3:
4 1 sec 6.8 MiB File Bartlett\CompatInfo\Analyser\CompatibilityAnalyser.php in progress...
References
If we want to display list of references supported, here is how to do with both versions :
$ phpcompatinfo reference:list
$ phpcompatinfo reference:list
Now, if you want to details each reference one by one identified by its name (<REF>
in following examples), and got :
-
Releases
$ phpcompatinfo reference:show --releases <REF>
-
Interfaces
$ phpcompatinfo reference:show --interfaces <REF>
$ phpcompatinfo reference:show --interfaces <REF>
-
Classes
$ phpcompatinfo reference:show --classes <REF>
$ phpcompatinfo reference:show --classes <REF>
-
Functions
$ phpcompatinfo reference:show --functions <REF>
$ phpcompatinfo reference:show --functions <REF>
-
Constants
$ phpcompatinfo reference:show --constants <REF>
$ phpcompatinfo reference:show --constants <REF>
-
INI entries
$ phpcompatinfo reference:show --ini <REF>
$ phpcompatinfo reference:show --ini <REF>
Print parses results
Where <SOURCE>
identify the data source, directly or via the JSON configuration file.
$ phpcompatinfo analyser:run <SOURCE> --php
$ phpcompatinfo analyser:run <SOURCE>
Caching results
-
Version 3.2 may cache results to speed-up later analysis.
-
Version 4.0 is also able to cache results.
But it seems not necessary, especially if you unload
xdebug
extension (that slows down execution at least by 50%).