Download the PHP package automattic/jetpack-analyzer without Composer
On this page you can find all versions of the php package automattic/jetpack-analyzer. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download automattic/jetpack-analyzer
More information about automattic/jetpack-analyzer
Files in automattic/jetpack-analyzer
Package jetpack-analyzer
Short Description Analyze differences between Jetpack versions
License GPL-2.0-or-later
Informations about the package jetpack-analyzer
Jetpack Code Analyzer
Analyzes public classes, methods, variables and functions to search for breaking changes between versions
Running
API
Declarations
This class represents a list of public declarations accumulated from one or more files.
Public declarations include:
- classes
- class methods (static and instance)
- public class properties
- functions
Declarations
can find each declaration by scanning files and directories using $declarations->scan( $dir, $exclude = array() )
.
You can print
, load
, and save
those declarations as CSV.
You can also generate a list of differences between old and new code bases, e.g. Jetpack 7.4 and Jetpack 7.5, using ->find_differences( $previous_declarations )
, which returns an instance of Automattic\Jetpack\Analyzer\Differences
.
You can use instances of Declarations
as input to (new Differences())->find( $new_codebase, $old_codebase )
Supported declarations:
- Class
- Class property (static or instance)
- Class method (static or instance)
- Function
Differences
A list of differences can be used to check compatibity against a set of invocations.
This is performed by parsing any external file looking for invocations. If those invocations match any functions, methods, classes or properties that have been changed between the two Jetpack versions, then a list of warnings or errors will be produced.
Supported differences:
- Class missing
- Class moved to another file
- Class property missing
- Class property moved to another file
- Class method missing
- Class method moved to another file
- Function missing
- Function moved to another file
Invocations
A list of invocations of every relevant type:
- function calls
- static and instance method calls
- instantiation via
new
- references to class props
This is ALL invocations of these types. To find just the invocations of missing/different functions, look at Warnings below.
Supported invocations:
- new Class
- assign/read static Class property
- invoke static Class method
- call Function
Warnings
A list of warnings generated by comparing an Invocations
object with a Differences
object.
Supported warnings:
- new Class
- assign/read static Class property
- invoke static Class method
- call Function