PHP Migration Tool Verification: Analyse and find issues to migrate PHP code

Recommend this page to a friend!
  Info   Documentation   View files (7)   Download .zip   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
Not yet rated by the usersTotal: 245 All time: 7,838 This week: 233
Version License PHP version Categories
php72migration 1.0.0GNU General Publi...5PHP 5, Utilities and Tools, Parsers
Description Author

This package can analyse and find issues to migrate PHP code.

It can scan for PHP source code files in a given directory and analyse them to find potencial problemas that may happen when you try to execute those files in PHP 7.2.

The package can find code that issues errors or warnings. Currently the class can:

- Find class functions with duplicated names
- Find deprecated __autoload statements
- Find deprecated each statements
- Find deprecated functions like png2wbmp, jpeg2wbmp, gmp_random, read_exif_data, mysql_select_db, mysql_connect, mysql_query, mysql_num_rows, mysql_result
- Find deprecated create function statements
- Find functions and syntax that can be deprecated in later versions like the end PHP tag ?>, strip_tags and mb_strings.

Innovation Award
PHP Programming Innovation award nominee
April 2019
Number 4
Many PHP developers want to take advantage of the features of newer PHP versions.

However, using newer versions without testing whether the old code still works correctly in those versions, may cause make PHP applications to stop working.

This package can analyse and find issues in code that may break when using PHP 7.2, thus helping to find issues that may cause your code to stop working when you upgrade to the PHP 7.2 version.

Manuel Lemos
Picture of Moisés Lima
Name: Moisés Lima <contact>
Classes: 1 package by
Country: Brazil Brazil
Age: ???
All time rank: 3904318 in Brazil Brazil
Week rank: 771 43 in Brazil Brazil
Innovation award
Innovation award
Nominee: 1x



Bot to detect, report errors, deprecated functions to php7.2 migration.

The project is in at

Add permission to execute in terminal:

chmod +x scan.php

How to execute:

./scan.php /home/yourproject e

No parameters: scan only erros


set dir to scan, 1st param

./scan.php /home/yourproject

e: scan only erros

./scan.php e

w: scan only warnings

./scan.php w

q: quiet, show nothing on console

./scan.php q

all: scan all

./scan.php all
File Role Description
Class (3 files)
LICENSE Lic. License text Doc. Documentation
scan.php Class Class source
site.css Data Auxiliary data

  Files  /  Class  
File Role Description
   Colors.php Class Class source
   Erros.php Class Class source
   Warnings.php Class Class source

 Version Control Unique User Downloads Download Rankings  
This week:0
All time:7,838
This week:233

For more information send a message to info at phpclasses dot org.