
If you do not include the '$' for the parameter value, PhpCodeGen will automatically add it. Type hinting and default values are supported. The parameters must be within curly braces and each parameter must be separated by a comma. This option is used to generate parameters for your method or function.
#PHP CODE GENERATER HOW TO#
See How to Use -tag How to use use -p in method and function commands It refers to the space between docblock and constant/property declaration.ĭocblockTagGroup - Defines user defined tags to apply to a docblock for a command. NumberOfSpaces - used for constants and properties.

Discussed below are the ones that can be a little confusing as to what they do.ĭebugMode - logs debugging information to the console Many of the settings are self explanatory. Feel free to copy these settings into your user settings and modify them to your liking. The majority of the settings have to deal with the code generation template. It is a PHP code generator, that build complete s. PhpCodeGen will automatically indent the commands output appropriately.Ĭreates an opening php tag a closing php tag Settings APIĭO NOT MODIFY THE DEFAULT SETTINGS! ONLY MAKE CHANGES IN THE USER SETTINGS Scriptcase is a powerful tool for web development, decreasing working hours and increasing profits. Īll commands must have no spaces or tabs before them to be parsed. I made a brief video on how to use the plugin and uploaded it to youtube. Set the syntax mode to php and start typing and suggestions will start to populate.
/PHP-code-58d2d5803df78c51623a6ce2.jpg)
With PhpCodeGen for Sublime Text, you can generate Object Oriented code with docblocks that are fully customizable extremely fast with just a few lines of code. PhpCodeGen is a Sublime Text Plugin that generates Object Oriented Code from a simple shorthand syntax.
