Start your plugin development with the boilerplate provided at this template. This repository serves not only as a starting point for Shopware 6 plugin development but is also pre-configured to set up a Dockware development environment.
- Basic knowledge of PHP and Symfony framework
- Docker installed on your local machine
- Git installed on your local machine
- Text editor or IDE of your choice , preferable Visual Studio Code
- Familiarity with the basics of Shopware 6 and its plugin system Shopawre 6 Documentation
$ git clone https://github.com/akshaynikhare/SW6-Plugin-Project-Template.git
$ cd SW6-Plugin-Project-Template
$ docker-compose up
After successfully setting up the Docker container & when the docker contaner is running, follow one of the installation options below:
-
Log in to the Shopware admin panel at localhost using the following credentials:
- Username: admin
- Password: shopware
-
Navigate to
admin > myextension
, locate your plugin, and proceed to install and activate.
Access the Docker container terminal using the following commands:
docker exec -it slox_test_1 /bin/bash
Inside the container, run the following commands:
bin/console plugin:refresh
bin/console plugin:install SW6-Plugin-Project-Template
bin/console plugin:activate SW6-Plugin-Project-Template
-
Open an SSH connection to the Docker container:
ssh dockware@localhost
Default password for the dockware container:
dockware
-
Navigate to the project directory:
cd ./html
-
Refresh the plugins:
bin/console plugin:refresh
-
Install the Plugin:
bin/console plugin:install SW6-Plugin-Project-Template
-
Activate the Plugin:
bin/console plugin:activate SW6-Plugin-Project-Template
Please make sure to execute these commands in an English-language environment.
After installing the plugin, it is important to note that the Composer install does not include compiled JavaScript. You will need to build/compile both the administration and storefront JavaScript.
bin/build-administration.sh
bin/build-storefront.sh
If you want to run the unit tests, start by installing all dev-dependencies and then run the command.
composer run init:js
If you want to run a separate static analyzer for this plugin, install the dev-dependencies and run this command.
phpstan analyse src tests
Please help with code, love, shares, feedback and bug reporting.
The MIT License (MIT). Please see License File for more information.
- For additional support, please email us at [email protected].
- or send us a contact requst at our website cadnative.com