A template for custom Magento 2 modules.
Add the custom repository to your root package.
{
"repositories":
{
"binford-tools.github.io":
{
"type": "composer",
"url": "https://binford-tools.github.io/composer/"
}
}
}
Require the package via Composer.
$ composer require binford-tools/module ^1.0
Enable the module via Magento’s CLI.
$ magento module:enable Binford_Module
Update the project via Magento’s CLI.
$ magento setup:upgrade
$ magento setup:di:compile
Update the package via Composer.
$ composer update binford-tools/module
Update the project via Magento’s CLI.
$ magento setup:upgrade
$ magento setup:di:compile
The module includes PHPStan for static code analysis, and covers all relevant classes with unit tests.
Install dependencies via Composer.
$ composer install
Run the tests via Composer.
$ composer test
We’re currently looking for passionate masochists PHP & Magento developers to join our e-commerce team in Munich. Sounds interesting? Just drop me a line via j.scherbl@techdivision.com.