kommandhub / foundation-sw
Kommandhub Foundation plugin for Shopware
Package info
github.com/KommandHub/foundation-sw
Type:shopware-platform-plugin
pkg:composer/kommandhub/foundation-sw
Requires
- shopware/core: ~6.6.0 || ~6.7.0
- shopware/fixture-bundle: ^0.1.0
Requires (Dev)
- friendsofphp/php-cs-fixer: ^3.94
- phpstan/phpstan: ^2.1
- phpunit/phpunit: ^11.5
- rregeer/phpunit-coverage-check: ^0.3.1
- shopware/dev-tools: ^1.5
README
The Kommandhub Foundation plugin provides common shared logic, abstract classes, and events for all Kommandhub Shopware plugins. It ensures consistency across payment integrations like Paystack and Flutterwave.
Developed with ❤️ by Kommandhub Limited
Table of Contents
Requirements
- Shopware:
~6.6.0or~6.7.0 - PHP:
^8.2(inside Docker) /^8.4(local) - Composer
Installation
Via Composer (Recommended)
composer require kommandhub/foundation-sw bin/console plugin:refresh bin/console plugin:install --activate KommandhubFoundationSW bin/console cache:clear
Development & Testing
To ensure a consistent environment, tests and development tools should be run inside the project's Docker container.
1. Setup Development Environment
Follow these steps to prepare your environment:
# Navigate to the plugin directory cd custom/plugins/KommandhubFoundationSW # Start the Docker containers make up # Enter the container shell make shell # Prepare the test environment (inside the shell) make prepare
2. Available Development Commands
Once the environment is prepared, you can execute the following commands (either inside the shell or via make from the host):
Run PHPUnit Tests
make test
Run Tests with Coverage
make test-coverage
Static Analysis (PHPStan)
make analyse
Code Style (PHP-CS-Fixer)
make cs make cs-fix
License
This project is licensed under a Proprietary license.
See the composer.json for details.