gokarla/shopware
Composer 安装命令:
composer require gokarla/shopware
包简介
Automatically transmit orders from your shop to Karla, providing precise and timely updates to your customers and improving the post-purchase experience.
README 文档
README
Enhance your post-purchase customer experience in Shopware with GoKarla - automated order tracking and delivery updates for your customers.
Overview
The Karla Delivery extension automatically synchronizes your Shopware orders and shipments with GoKarla, enabling you to provide your customers with precise, timely delivery updates and improve satisfaction after purchase.
Features
Core Capabilities
- Automatic Order Synchronization - Orders are automatically sent to GoKarla when placed or updated
- Shipment Tracking Integration - Delivery tracking codes are synchronized in real-time
- Customer Segmentation - Leverage order and customer tags for targeted communication
- Multi-Channel Support - Map different sales channels to specific GoKarla shops
Flexible Configuration
- Configurable Event Triggers - Choose which order and delivery statuses trigger synchronization
- Line Item Type Mapping - Support for products, promotions, and custom line item types (e.g., deposits)
- Custom API Endpoint - Use production or custom GoKarla API endpoints
- Detailed Logging - Built-in logging for troubleshooting and monitoring
Requirements
- Shopware 6 - Compatible with Shopware 6.x
- GoKarla Account - Sign up at portal.gokarla.io
- API Credentials - Shop slug and API key from your GoKarla account. See Authentication.
Installation
Option 1: Via Shopware Admin Panel (Recommended)
- Download the latest
KarlaDelivery.zipfrom GitHub Releases - In Shopware admin, navigate to Extensions → My Extensions
- Click Upload extension and select the downloaded ZIP file
- Click Install and then Activate
- Configure your API credentials in the extension settings
For detailed instructions, see Shopware Integration Documentation.
Option 2: Via Composer
composer require gokarla/shopware bin/console plugin:refresh bin/console plugin:install --activate KarlaDelivery bin/console cache:clear
Option 3: Manual Installation via Console
- Download and extract
KarlaDelivery.zipto<shopware-root>/custom/plugins/ - Run the following commands:
bin/console plugin:refresh bin/console plugin:install --activate KarlaDelivery bin/console cache:clear
Configuration
After installation, configure the extension:
- Go to Extensions → My Extensions → Karla Delivery → Configure
- Enter your Shop Slug and API Key from your GoKarla account
- Configure which order and delivery statuses should trigger synchronization
- (Optional) Set up sales channel mapping for multi-shop setups
- Save the configuration
Recommended Settings:
- Order Statuses: Enable "In Progress" and "Completed"
- Delivery Statuses: Enable "Shipped" and "Shipped Partially"
Support
- Documentation: docs.gokarla.io
- Issues: GitHub Issues
- Contact: For additional support, contact your GoKarla account manager
Contributing
We welcome contributions! This is an open-source project under the Apache-2.0 License.
Quality Standards:
- All code must pass
make check-all(linting, static analysis, and tests) - Follow PSR-12 coding standards
- Add tests for new features
- Update documentation as needed
Development Setup
Install dependencies:
composer install
Code Quality
This project follows PSR-12 coding standards and uses modern PHP tooling for quality assurance.
Available Commands:
# Check code style with PHP-CS-Fixer make lint # Auto-fix code style issues make format # Run static analysis with PHPStan make analyse # Run tests with PHPUnit make test # Generate code coverage report make coverage # Run all quality checks make check-all
Tooling:
- PHP-CS-Fixer - Fast, modern code formatter
- PHPStan - Static analysis to catch bugs before runtime
- PHPUnit - Comprehensive test suite
- EditorConfig - Consistent formatting across editors
Code Coverage
To generate code coverage reports locally, you need Xdebug installed:
macOS (Homebrew):
# Install with sudo (Homebrew Cellar requires elevated permissions)
sudo pecl install xdebug
Verify installation:
php -m | grep xdebug
Alternative if PECL fails - compile from source:
# Download and compile xdebug git clone https://github.com/xdebug/xdebug.git cd xdebug phpize ./configure make sudo make install # Enable in php.ini echo "zend_extension=xdebug.so" | sudo tee -a $(php --ini | grep "Loaded Configuration" | sed -e "s|.*:\s*||")
Linux (Ubuntu/Debian):
sudo apt install php8.3-xdebug
Docker/Dockware:
# Xdebug is pre-installed in Dockware containers
After installing Xdebug, run:
make coverage
# Open coverage/html/index.html in your browser
Coverage reports are automatically generated in CI and uploaded to Codecov.
Local Development with Dockware
Start a local Shopware instance:
make dockware-start make dockware-attach
Access the development shop:
- Admin Panel: http://localhost/admin (credentials:
admin/shopware) - Storefront: http://localhost
- Logs: http://localhost/logs
For detailed development guidelines, see CLAUDE.md.
Versioning
We use SemVer for versioning. For the versions available, see the tags on this repository.
License
This project is licensed under the Apache-2.0 License - see the LICENSE file for details.
gokarla/shopware 适用场景与选型建议
gokarla/shopware 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 759 次下载、GitHub Stars 达 1, 最近一次更新时间为 2025 年 10 月 14 日, 在 PHP 生态内属于活跃度较高的组件。
我们在过去多个企业项目中使用过 gokarla/shopware 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 gokarla/shopware 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
统计信息
- 总下载量: 759
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 30
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: Apache-2.0
- 更新时间: 2025-10-14