Yakpro task
Yakpro task
Description
Task to process yakpro : a php obfuscator (see: github.com/pk-fr/yakpro-po).
Yakpro task parameters
Attribute | Description | Value | Required |
---|---|---|---|
file | the php input file | yes, if no dir | |
tofile | the ast output file | yes, if no dir | |
dir | the php input dir | yes, if no file | |
todir | the ast output dir | yes, if no file | |
laravel | set default config for laravel | –no-obfuscate-constant-name –no-obfuscate-variable-name –no-obfuscate-function-name –no-obfuscate-class_constant-name –no-obfuscate-class-name –no-obfuscate-interface-name –no-obfuscate-trait-name –no-obfuscate-property-name –no-obfuscate-method-name –no-obfuscate-namespace-name | no |
Examples
/!\ yakpro must be installed on the system and set up in the PATH.
<project name="yakpro task">
<taskdef name="yakpro"
classname="net.sourceforge.ant4x.taskdefs.php.YakproTask"
classpath="PATH/TO/ant4x.jar"/>
<target name="yakpro-laravel">
<yakpro dir="app" todir="gen" laravel="true" />
</target>
</project>