PHPackages                             b3nl/phing-shopware - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. b3nl/phing-shopware

ActiveLibrary

b3nl/phing-shopware
===================

Adds shopware tasks to your phing-build.

1.0.21(11y ago)2499GPL v3PHPPHP &gt;=5.4.0

Since Jan 13Pushed 10y ago2 watchersCompare

[ Source](https://github.com/b3nl/phing-shopware)[ Packagist](https://packagist.org/packages/b3nl/phing-shopware)[ RSS](/packages/b3nl-phing-shopware/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (6)Used By (0)

phing-shopware
==============

[](#phing-shopware)

This (composer) package enables additional phing tasks for your phing automatizations.

Requirements
------------

[](#requirements)

1. **The tasks require a property SW\_PATH which sets the shopware root path.**
2. A property "language" should exist in the phing project aswell.

Tasks
-----

[](#tasks)

- activateSWPlugin(PhingShopware\\Task\\ActivatePlugin): Calls the shopware cli to activate a plugin with the given id.
    - plugin: Plugin Id
    - \[ignore: (true|false) - Ignore a possible error?\]
- callSWCLI(PhingShopware\\Task\\CallCLI): Calls the shopware cli with the given command.
    - command: The command for the cli.
    - \[consoleOutput: The name of the var, which will contain the output.\]
    - \[returnOutput: The name of the var, which will contain the return value.\]
- clearSWCache(PhingShopware\\Task\\ClearCache): Calls the shell script to empty the cache directory of shopware.
- controlSWPlugin(PhingShopware\\Task\\ControlPlugin): Handles basic plugin operations for your shopware shop.
    - \[activate: (true|false) - Activates or deactivates the module if you provide this parameter.\]
    - \[ignore: (true|false) - Should errors be ignored?\]
    - \[install: (true|false) - Install the plugin first?\]
    - \[[Possible Child-Properties](https://www.phing.info/docs/guide/trunk/PropertyTask.html)\]
    - plugin: The ID of the plugin.\]
    - \[update: (true|false) - Update the plugin?\]
- handleSWMaintenance(PhingShopware\\Task\\HandleMaintenance): Activate or deactive the maintenance mode?
    - enable: (true|false)
    - \[shopScope: For which scope?\]
- ifSWPlugin(PhingShopware\\Task\\IfPlugin): Custom if-Check for plugin states
    - existsSWPlugin(PhingShopware\\Task\\Condition\\Plugin\\IsExisting): Does the plugin exist?
        - plugin: The ID of the plugin.
    - isSWPluginActive(PhingShopware\\Task\\Condition\\Plugin\\IsActive): Is the plugin active?
        - plugin: The ID of the plugin.
    - isSWPluginInstalled(PhingShopware\\Task\\Condition\\Plugin\\IsInstalled): Is the plugin active?
        - plugin: The ID of the plugin.
    - SWPluginNeedsUpdate(PhingShopware\\Task\\Condition\\Plugin\\IsInstalled): Needs the plugin an update?
        - plugin: The ID of the plugin.
- installSWDatabase(PhingShopware\\Task\\InstallDatabase): Fetches the typical database from your locally installed dev release and installs the shopware database.
- installSWDemoData(PhingShopware\\Task\\InstallDemoData): Tries to download a demo file from [http://releases.s3.shopware.com/demo\_%s.zip](http://releases.s3.shopware.com/demo_%s.zip) and "unzips" it to the shop directory.
    - \[demoVersion: A semantic versioning string for the demo data version\]
    - \[overwrite: (true|false) - Should the new demo zip overwrite the old one?\]
    - \[stopOnError: (true|false) - Should a download error stop the process?\]
    - \[urlPattern: Which url pattern should be used?\]
- saveSWConfigData(PhingShopware\\Task\\SaveConfigData): Saves the typical and required config data in database (adminLanguage, adminName, ... Please review the example xml).
- writeSWConfigFile(PhingShopware\\Task\\WriteConfigFile): Takes the config and writes the typical shopware config file.
- writeToSWDatabase(PhingShopware\\Task\\WriteToDatabase): Executes given queries in the database.
    - file: The path to a sql file.
    - \[withParse: (true|false) "Parse" the given file? Parsing means, separating the queries with ;\\r\\n -&gt; ;\\n\]

You can include this tasks like this:

> To register the custom task with Phing, the taskdef element (line 5) is used. See Section B.40, “TaskdefTask ” for a more detailed explanation. Optionally, before the taskdef element, the includepath element adds a path to PHP's include path. This is of course only required if the mentioned path isn't already on the include path. See Section B.24, “IncludePathTask ” for a more detailed explanation. ()

1. [includepath](https://www.phing.info/docs/guide/trunk/IncludePathTask.html)
2. [taskdef](https://www.phing.info/docs/guide/trunk/TaskdefTask.html)

### Example

[](#example)

```

        Please use one of this targets: prepareLocalEnv

                AdvancedMenu exists.

                AdvancedMenu does not exist.

                AdvancedMenu allready installed.

                AdvancedMenu allready activated.

```

###  Health Score

29

—

LowBetter than 60% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity15

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity62

Established project with proven stability

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~9 days

Total

4

Last Release

4105d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/66b163ea4a6e36824a598692bb26389d545c39d2af3830f9cbaf6b3b196e04af?d=identicon)[WBLKonzept](/maintainers/WBLKonzept)

---

Top Contributors

[![b3nl](https://avatars.githubusercontent.com/u/1861864?v=4)](https://github.com/b3nl "b3nl (1 commits)")

### Embed Badge

![Health badge](/badges/b3nl-phing-shopware/health.svg)

```
[![Health](https://phpackages.com/badges/b3nl-phing-shopware/health.svg)](https://phpackages.com/packages/b3nl-phing-shopware)
```

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
