raffaelecarelle/shopware-plugin-skeleton-generator
Composer 安装命令:
composer require raffaelecarelle/shopware-plugin-skeleton-generator
包简介
A tool to generate a standardized skeleton structure for developing Shopware plugins, enabling developers to quickly start and streamline the development process.
README 文档
README
The Shopware Plugin Skeleton Generator is a powerful tool designed to streamline the development process for Shopware plugins. It quickly generates a clean, standardized skeleton structure for your plugin, providing essential files, directories, and configurations. This helps developers save time, maintain best practices, and focus on building custom functionality for Shopware-based eCommerce solutions. Whether you're a beginner or an experienced Shopware developer, this generator is an excellent starting point for your plugin projects.
Installation
This tool is intended to be used as a development dependency in your Shopware project.
-
Require with Composer:
composer require --dev raffaelecarelle/shopware-plugin-skeleton-generator
-
Refresh, Install and Activate the plugin:
bin/console plugin:refresh bin/console plugin:install ShopwarePluginSkeletonGenerator --activate
Usage
Generate a Plugin
The main command is plugin:skeleton:generate. It takes the fully qualified plugin name as an argument and has several options to customize the generated skeleton.
Arguments:
fullyQualifiedPluginName: (Required) The fully qualified class name for your plugin (e.g.,MyVendor\MyPlugin).
Options:
--static: Generate a static plugin.--headless: Generate a plugin compatible with headless projects (omits the Storefront module).--additionalBundle=<name>: Create an additional bundle for specific sections likeStorefront,Administration,Core, etc. Can be used multiple times.--append: Update an existing plugin by adding one or more bundles specified with--additionalBundle.--config: Generate aconfig.xmlfile for the plugin.
Examples
Generate a new basic plugin:
bin/console plugin:skeleton:generate MyVendor\\MyAwesomePlugin
Generate a new static plugin:
bin/console plugin:skeleton:generate MyVendor\\MyStaticPlugin --static
Generate a new headless plugin:
bin/console plugin:skeleton:generate MyVendor\\MyHeadlessPlugin --headless
Generate a plugin with additional bundles:
bin/console plugin:skeleton:generate MyVendor\\MyMultiBundlePlugin --additionalBundle=Core --additionalBundle=Administration
Add new bundles to an existing plugin:
bin/console plugin:skeleton:generate MyVendor\\MyMultiBundlePlugin --append --additionalBundle=Elasticsearch
Generate a plugin with a configuration file:
bin/console plugin:skeleton:generate MyVendor\\MyConfigurablePlugin --config
Development Commands
This project uses Docker and a Makefile to simplify the development workflow.
make setup: Builds the Docker containers and installs Composer dependencies. Run this first.make start: Starts the Docker containers in the background.make sh: Opens a shell (zsh) inside the PHP container.make composer-update: Runscomposer updateinside the container.make pre-commit: Runs all quality checks: Rector, CS-Fixer, PHPStan, and PHPUnit.make rector: Runs Rector to apply automated code refactoring.make cs-fix: Runs PHP-CS-Fixer to fix coding standards.make phpstan: Runs PHPStan for static analysis.make tests: Runs the PHPUnit test suite.
raffaelecarelle/shopware-plugin-skeleton-generator 适用场景与选型建议
raffaelecarelle/shopware-plugin-skeleton-generator 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 197 次下载、GitHub Stars 达 5, 最近一次更新时间为 2025 年 02 月 03 日, 在 PHP 生态内属于活跃度较高的组件。
我们在过去多个企业项目中使用过 raffaelecarelle/shopware-plugin-skeleton-generator 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 raffaelecarelle/shopware-plugin-skeleton-generator 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
统计信息
- 总下载量: 197
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 5
- 点击次数: 18
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2025-02-03