PHP Classes

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

Recommend this page to a friend!
  Info   View files Documentation   View files View files (7)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
Not yet rated by the usersTotal: 252 All time: 7,855 This week: 326Up
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: 3 packages by
Country: Brazil Brazil
Age: ???
All time rank: 3647285 in Brazil Brazil
Week rank: 114 Up6 in Brazil Brazil Up
Innovation award
Innovation award
Nominee: 2x



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
  Files folder image Files  
File Role Description
Files folder imageClass (3 files)
Accessible without login Plain text file LICENSE Lic. License text
Accessible without login Plain text file Doc. Documentation
Plain text file scan.php Class Class source
Accessible without login Plain text file site.css Data Auxiliary data

  Files folder image Files  /  Class  
File Role Description
  Plain text file Colors.php Class Class source
  Plain text file Erros.php Class Class source
  Plain text file Warnings.php Class Class source

 Version Control Unique User Downloads Download Rankings  
This week:0
All time:7,855
This week:326Up