Various tools for developing with CampaignChain, e.g. to generate CampaignChain modules from the command line.
The CampaignChain module generator is an interactive tool to help generate new CampaignChain modules for development. It also generates the necessary packaging for modules in Composer-friendly format.
To install the CampaignChain module generator, follow these steps:
Update your project's composer.json file to include the "campaignchain/dev-tools" package.
Run "composer update" in your project directory.
Add the following line to the end of the registerBundles::bundles array in your app/AppKernel.php file:
- If necessary, manually update your project's Composer autoload_psr4.php file to load the necessary classes:
return array( // .... 'CampaignChain\\GeneratorBundle\\' => array($vendorDir . '/campaignchain/dev-tools'), );
To use the CampaignChain module generator, first ensure that you're prepared with the basic information for your module, as listed below:
- The module name
- The module identifier
- The module description
- The module vendor's name and email address
- The module license
- The bundle namespace
- The bundle name
- Any module-specific parameters
Refer to the CampaignChain developer documentation to learn more.
The CampaignChain module generator will provide hints and tips throughout the module generation process, so don't worry if you don't have it all ready when you begin.
You can now start the module generator with the following command:
php bin/console campaignchain:generate:module