PHP code example of webkul / code-generator
1. Go to this page and download the library: Download webkul/code-generator library . Choose the download type require .
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
webkul / code-generator example snippets php bin/magento generate:code Module_Name --type=new-module
php bin/magento generate:code Module_Name --type=repository --name=RepositoryClassName --model-class=ModelClassFullName --collection-class=CollectionClassFullName
php bin/magento generate:code Module_Name --type=controller --name=ControllerName --area=frontend|adminhtml --path=RelativeToModuleControolerFolder --router=RouteName
php bin/magento generate:code Module_Name --type=helper --name=HelperName
php bin/magento generate:code Module_Name --type=payment --name=MethodName --payment-code=PaymentMethodCode
php bin/magento generate:code Module_Name --type=shipping --shipping-code=custom_shipping
php bin/magento generate:code Module_Name --type=plugin --name=PluginName --plugin=FullClassName [--area=frontend|adminhtml]
php bin/magento generate:code Module_Name --type=cron --name=CronName [--schedule="0 1 * * *"]
php bin/magento generate:code Module_Name --type=unit-test
php bin/magento generate:code Module_Name --type=logger [--name=loggerfile]
php bin/magento generate:code Module_Name --type=command --name=CommandClass --command='test:hello'
php bin/magento generate:code Module_Name --type=rewrite --name=ClassName --rewrite='OverriddenClass' [--path=RelativeToModuleFolder]
php bin/magento generate:code Module_Name --type=email --name="Email Label" [--id="module_email_test"] [--template="test"]