Tools to quickly add PHP7 features to your existing codebase

0.0.5 2017-02-07 23:23 UTC

This package is auto-updated.

Last update: 2024-04-29 03:33:26 UTC


php7ize is a command-line utility for quickly adding PHP7 features to a PHP5 codebase.


The only officially-supported method of installation is via Composer and Packagist. Because this is not intended to be treated as a project dependency, it's recommended to be installed globally:

composer global require firehed/php7ize

If you have not already done so, add Composer's global bin directory to your PATH:

# ~/.bash_profile
export PATH=$PATH:~/.composer/vendor/bin


(more details coming soon)


Use Composer's global update mechanism:

composer global update


Please see more information in

Future features

All features are subject to change. Feel free to add a suggestion by adding a Github issue.

  • Drastically improve the internal implementation (use/access an AST?)
  • Improve/test type hint for variadic functions
  • Add test coverage for interfaces, traits, and abstract classes
  • Auto-rename PHP4-style constructors?