Describes API differences between two distincts versions of the same PHP library.
This package is auto-updated.
Last update: 2020-10-05 09:56:22 UTC
This is a tool for describing API differences between two distincts versions of the same PHP library.
phpact <project> <oldversion> <newversion>
project: the project name;
oldversion: the base release version; and
newversion: the challenger version to be compared against the base one.
Both version values must be explicit, e.g.
3.2.1. Constraints such as
^1.2 will not work! They may, alternatively, point to some directory instead.
--bc-break-only: filter differences that cause backwards compatibility break, including those that come from protected stuff.
--visibility <level>: filter differences according to the visibility level given, which may assume:
private; or multiple values, e.g.
public,protected. It defaults to
--report <format>: echoes differences as
xmlin console output. It defaults to
--report-<format> <file>: write differences into the given file.
renanbr/phpact dependency using Composer.
composer require renanbr/phpact
Once PHP is weakly typed, there is no magic to do. The better documented the project are, the better results you will get.
phpact uses phpDox to get information about the API.