hurah/php-typed-property-toggle

Comment / uncomment PHP typed properties for your project.

dev-master 2020-05-26 09:29 UTC

This package is auto-updated.

Last update: 2024-06-26 18:33:27 UTC


README

PHP version transpile

This is a simple utility that accepts a directory structure containing php 7.4 typed property classes and copies this structure to the specified output folder with the typed properties commented out. It does the same in reverse.

Usage: ./bin/transpile PHP_VERSION SOURCE_DIR DEST_DIR

Example: ./bin/transpile 7.3 ./src ./dist