# swissup/core

> Swissup core module. It's purpose is to add menu and config placeholders

`composer require swissup/core`

Canonical URL: https://packagento.com/swissup/core

## At a glance

- **Vendor**: swissup (https://packagento.com/swissup.md)
- **Latest version**: 1.12.27 — released 2026-05-15
- **Pricing**: Free
- **Package type**: Metapackage (bundle of modules)
- **Status**: active, accepting new buyers

## Installation

Packagento is licence-gated, so even free packages need a licence on a project before Composer can resolve them.

1. **Sign in or create an account** at https://packagento.com/customer/account/.

2. **Add the package to your account.** Open https://packagento.com/swissup/core and complete the free checkout. A licence is minted automatically.

3. **Create or pick a project, then activate the licence on it.**
   - Projects represent the Magento installs you deploy to. Manage them at https://packagento.com/projects/.
   - Activate the new licence on the project you'll deploy this package to. Activation is what generates the Composer credentials scoped to that project.

4. **Add the project credentials to your Magento codebase.**

   Grab the project's public + private key from https://packagento.com/projects/ (open the project, then its Credentials tab), and add them to `auth.json`:

   ```json
   {
     "http-basic": {
       "packagento.com": {
         "username": "ppk_live_...",
         "password": "psk_live_..."
       }
     }
   }
   ```

   Add the Packagento Composer repository to `composer.json`:

   ```json
   {
     "repositories": [
       { "type": "composer", "url": "https://packagento.com" }
     ]
   }
   ```

5. **Install and apply.**

   ```bash
   composer require swissup/core:*
   bin/magento setup:upgrade
   bin/magento setup:di:compile
   bin/magento cache:flush
   ```

## What it does

Swissup core module. It's purpose is to add menu and config placeholders

## README

### Contents

1. [Installation](#installation)
2. [Swissup Installer Usage](#swissup-installer-usage)
3. [Swissup Upgrade Class](#swissup-upgrade-class)
4. [Popup Message Manager](#popup-message-manager)

#### Installation

```bash
cd <magento_root>
composer require swissup/core
bin/magento module:enable Swissup_Core
bin/magento setup:upgrade
```

#### Swissup Installer Usage

Swissup installer is a class that collects [Swissup Upgrades](#swissup-upgrade-class)
from all module dependencies and run them, if needed.

Lets see the example of how the Argento theme installer is working:

```php
$module = $this->_objectManager->create('Swissup\Core\Model\Module');
$module->load('Swissup_ArgentoDefault')
    ->setNewStores([0])
    ->up();
```

What does this code do?

 1. Create `Swissup\Core\Model\Module` object.
 2. Load module info for `Swissup_ArgentoDefault` module from `composer.json`
    file.
 3. Set the store to use (All Stores).
 4. Run installer:
    1. Search for [Swissup\Upgrade](#swissup-upgrade-class) classes for all
        depends of `Swissup_ArgentoDefault` module.
    2. Run `getOperations` and `up` command for each of the found upgrade class.
    3. Run `getOperations` and `up` command of `Swissup_ArgentoDefault` upgrade class.

#### Swissup Upgrade Class

When module or theme needs to run some extra logic for specified store views,
it's very handy to use `Swissup\Upgrade` class, which allows to create and
automatically backup various content types and configuration.

> Why not to use Magento DataUpgrade?
> - It does not allow to run upgrade multiple times (reinstall)
> - It does not have built-in methods to change store configuration
> - It does not support content backups

Swissup upgrades &mdash; are migrations, located at `<module_dir>/Upgrades` directory.
Upgrade class must implement `Swissup\Core\Api\Data\ModuleUpgradeInterface`.

Upgrade examples:

```
Swissup/ArgentoDefault/Upgrades/1.0.0_initial_installation.php
Swissup/ArgentoDefault/Upgrades/1.0.1_add_callout_blocks.php
Swissup/ArgentoDefault/Upgrades/1.1.0_create_featured_products.php
```

**Upgrade naming conventions**

```
1.0.0       _               initial_installation   .php
^ version   ^ Separator     ^ ClassName            ^ file extension
```

Class example:

```php
<?php

namespace Swissup\ArgentoDefault\Upgrades;

class InitialInstallation extends \Swissup\Core\Model\Module\Upgrade
{
    public function up()
    {
        // This method is optional.
        // Additional logic may be placed here.
    }

    public function getCommands()
    {
        return [
            'Configuration' => [
                'prolabels/on_sale/product/active'  => 1,
                'prolabels/on_sale/category/active' => 1,
                'prolabels/is_new/product/active'   => 1,
                'prolabels/is_new/category/active'  => 1,
            ],

            'CmsBlock' => [
                'header_callout' => [
                    'title' => 'header_callout',
                    'identifier' => 'header_callout',
                    'is_active' => 1,
                    'content' => 'content'
                ]
            ]

            'ProductAttribute' => [
                [
                    'attribute_code' => 'featured',
                    'frontend_label' => array('Featured'),
                    'default_value'  => 0
                ]
            ],

            'Products' => [
                'featured'       => 6,
                'news_from_date' => 6
            ]
        ];
    }
}

```

**Supported Commands**

Key/ClassName   | Description
----------------|------------
Configuration   | Update store configuration
CmsBlock        | Create/backup cms blocks
CmsPage         | Create/backup cms pages
Easyslide       | Create slider if it does not exists
ProductAttribute| Create attribute if it does not exists
Easybanner      | Create placeholders and banners
Products        | Create featured, new, special, and any other products

#### Popup Message Manager

Popup message manager allows to show regular Magento messages with additional
information in popup window.

![Popup Message Example](/resources/docs/images/popup_message_example.gif)

**Usage example**

Inject `\Swissup\Helper\PopupMessageManager` component into your controller
action and use it instead of built-in `\Magento\Framework\Message\Manager`:

```php
$this->popupMessageManager->addError(
    __('Decoding failed: Syntax error'),
    $popupText,
    $popupTitle
);
```

## Recent Versions

| Version | Released |
|---|---|
| 1.12.27 | 2026-05-15 |
| 1.12.26 | 2025-12-17 |
| 1.12.25 | 2025-11-17 |
| 1.12.24 | 2025-07-21 |
| 1.12.23 | 2025-07-21 |
| 1.12.22 | 2025-04-09 |
| 1.12.21 | 2024-12-12 |
| 1.12.20 | 2024-07-11 |
| 1.12.19 | 2024-03-28 |
| 1.12.18 | 2023-07-27 |

Showing 10 of 46 versions. Full release history on https://packagento.com/swissup/core.

## Dependencies

### Require

| Package | Constraint |
|---|---|
| swissup/module-core | ^1.12.27 |

## Quality

Latest release (1.12.27) fails the Packagento QA pipeline. Verdicts below are per-cell (Magento line × PHP version) for the matrixed tools, and run-once for the static / security tiers.


### Compatibility

Each Magento line is installed on its supported PHP versions, then the module is built (DI compile + static-content deploy). Cells show passed / failed / untested; staircase gaps render as `–`.

| Magento | PHP 8.2 | PHP 8.3 | PHP 8.4 | PHP 8.5 |
|---|---|---|---|---|
| 2.4.7 | not tested | not tested | – | – |
| 2.4.8 | – | not tested | not tested | – |
| 2.4.9 | – | – | not tested | not tested |


### Code Quality

Advisory checks against the module's source. Never affect the Compatibility verdict — a phpcs finding can't make a module incompatible.

#### Static Analysis

Coding standards (phpcs), mess detection (phpmd), copy-pasted code (cpd), PHP cross-version compatibility, composer.json validity. Each runs once for the whole module.

| Tool | Status | Findings | Summary |
|---|---|---|---|
| PHPCS | N/A | 0 | metapackage ships no source of its own — phpcs skipped (#122) |
| PHPMD | N/A | 0 | metapackage ships no source of its own — phpmd skipped (#122) |
| Cpd | N/A | 0 | metapackage ships no source of its own — cpd skipped (#122) |
| PHP Compatibility | N/A | 0 | metapackage ships no source of its own — php-compatibility skipped (#122) |
| Composer validate | Info | 1 | valid; 1 advisory note (composer validate --strict) |

#### PHPStan

Type-checks the module against a real Magento install. Re-runs per Magento + PHP version because resolvable symbols differ between releases.

| Magento | PHP 8.2 | PHP 8.3 | PHP 8.4 | PHP 8.5 |
|---|---|---|---|---|
| 2.4.7 | 42 | 42 | – | – |
| 2.4.8 | – | 42 | 42 | – |
| 2.4.9 | – | – | 42 | 42 |


### Tests

Unit and integration suites run per Magento + PHP cell. Test failures speak to the module's behaviour, not its compatibility with a line, so they're reported here separately.

#### Unit Tests

| Magento | PHP 8.2 | PHP 8.3 | PHP 8.4 | PHP 8.5 |
|---|---|---|---|---|
| 2.4.7 | N/A | N/A | – | – |
| 2.4.8 | – | N/A | N/A | – |
| 2.4.9 | – | – | N/A | N/A |

#### Integration Tests

| Magento | PHP 8.2 | PHP 8.3 | PHP 8.4 | PHP 8.5 |
|---|---|---|---|---|
| 2.4.7 | N/A | N/A | – | – |
| 2.4.8 | – | N/A | N/A | – |
| 2.4.9 | – | – | N/A | N/A |


### Security

Dependency-advisory audit (composer audit) plus a source malware scan. A malware detection fails the version outright.

| Tool | Status | Findings | Summary |
|---|---|---|---|
| Composer audit | Pass | 0 |  |
| Malware scan | N/A | 0 | metapackage ships no source of its own — malware scan skipped (#122) |

## Licence and pricing

Free. A licence is still minted on checkout and bound to your project for Composer access — no payment step.

Refundable within 14 days of first purchase via https://packagento.com/account/refunds/.

## Install via Claude Code or any MCP client

The Packagento MCP server can run the licence + project + Composer steps above in one tool call:

```
purchase_and_install_packages(
  composer_names=["swissup/core"],
  project_id="proj_xxx"
)
```

This handles cart, checkout, licence minting, project activation, and writes auth.json credentials. Connect a client with `claude mcp add packagento https://mcp.packagento.com`. Full setup at https://packagento.com/docs/mcp-setup.

## Vendor

swissup is a Magento 2 vendor on Packagento. See https://packagento.com/swissup.md for their full catalogue.

