hurah / php-typed-property-toggle
Comment / uncomment PHP typed properties for your project.
Installs: 10
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/hurah/php-typed-property-toggle
Requires
- php: >=7.3
- composer/composer: ^2.0@dev
- monolog/monolog: ^2.0@dev
- psr/log: ^1.1@dev
- symfony/console: ^5.1@dev
Requires (Dev)
- phpunit/phpunit: ^9.2@dev
This package is auto-updated.
Last update: 2025-09-26 21:25:15 UTC
README
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