PHPackages                             monque/php-migration - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Database &amp; ORM](/categories/database)
4. /
5. monque/php-migration

ActiveLibrary[Database &amp; ORM](/categories/database)

monque/php-migration
====================

A static analyzer for PHP version migration and compatibility

v0.2.2(9y ago)203401—0%18[2 issues](https://github.com/monque/PHP-Migration/issues)[2 PRs](https://github.com/monque/PHP-Migration/pulls)MITPHPPHP &gt;=5.4.0

Since Nov 27Pushed 7y ago10 watchersCompare

[ Source](https://github.com/monque/PHP-Migration)[ Packagist](https://packagist.org/packages/monque/php-migration)[ Docs](http://github.com/monque/PHP-Migration)[ RSS](/packages/monque-php-migration/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (4)Dependencies (2)Versions (9)Used By (0)

PHP Migration
=============

[](#php-migration)

> Readme in [Chinese 中文](https://github.com/monque/PHP-Migration/tree/master/README_ZH.md)

[![Build Status](https://camo.githubusercontent.com/d66fb910aa88a06129b3c28ec50f12657eb10ea5242a86c5cb43dfba67947cef/68747470733a2f2f7472617669732d63692e6f72672f6d6f6e7175652f5048502d4d6967726174696f6e2e737667)](https://travis-ci.org/monque/PHP-Migration)[![Total Downloads](https://camo.githubusercontent.com/6a957fec88d88cca8f3d098dae428b4ee475ba60bc39e67249aa258f0b310d31/68747470733a2f2f706f7365722e707567782e6f72672f6d6f6e7175652f5048502d4d6967726174696f6e2f642f746f74616c2e737667)](https://packagist.org/packages/monque/PHP-Migration)[![Latest Stable Version](https://camo.githubusercontent.com/9d32cca1a5580d3ecc20a1c24d9ca835b439bbf8237fff6a93e90f5cdde45c03/68747470733a2f2f706f7365722e707567782e6f72672f6d6f6e7175652f5048502d4d6967726174696f6e2f762f737461626c652e737667)](https://packagist.org/packages/monque/PHP-Migration)[![License](https://camo.githubusercontent.com/e2e054306c2ddc3fbec311a5d86dea0fa9e8d4b6275f937a23d6f17620929029/68747470733a2f2f706f7365722e707567782e6f72672f6d6f6e7175652f5048502d4d6967726174696f6e2f6c6963656e73652e737667)](https://packagist.org/packages/monque/PHP-Migration)

This is a static analyzer for PHP version migration and compatibility checking.

It can suppose your current code running under the new version of PHP then do checking, and provide advice and treatment.

And it can simplify the process of upgrading PHP. Its goal is instead of manual checking.

Features:

- Wide coverage, checks most of the changes which introduced in PHP 5.3 - 7.0.
- Strict, without missing any risk.
- Zero configuration, run directly after download.
- Simply add custom checks.

> Compare to the similar project [PHP Compatibility](https://github.com/wimg/PHPCompatibility)`PHP Compatibility` is a set of sniffs for `PHP_CodeSniffer`, therefore it lacks flexibility and can not checks more changes. *just objective comparison*

**Notice: this project is in beta stage, feel free to report any issues.**

Install / Usage
---------------

[](#install--usage)

1. You can download a executable [Phar](http://php.net/manual/en/book.phar.php) file

    ```
    wget https://github.com/monque/PHP-Migration/releases/download/v0.2.2/phpmig.phar

    ```
2. Use the following command to check PHP file

    ```
    php phpmig.phar sample.php

    ```

    Suppose these code stored in `sample.php`

    ```
