# mageme/module-core

> Core foundation module for MageMe extensions providing license management, admin UI infrastructure, and shared utilities

`composer require mageme/module-core`

Canonical URL: https://packagento.com/mageme/module-core

## At a glance

- **Vendor**: mageme (https://packagento.com/mageme.md)
- **Latest version**: 2.0.1 — released 2026-06-14
- **Pricing**: Free
- **Package type**: Magento 2 module
- **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/mageme/module-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 mageme/module-core:*
   bin/magento setup:upgrade
   bin/magento setup:di:compile
   bin/magento cache:flush
   ```

## What it does

Core foundation module for MageMe extensions providing license management, admin UI infrastructure, and shared utilities

## README

[![Latest Version on Packagist](https://img.shields.io/packagist/v/mageme/module-core.svg?style=flat-square)](https://packagist.org/packages/mageme/module-core)
[![Packagist Downloads](https://img.shields.io/packagist/dt/mageme/module-core.svg?style=flat-square)](https://packagist.org/packages/mageme/module-core)
[![Magento](https://img.shields.io/badge/Magento-2.4.x-EE672F.svg?style=flat-square)](https://magento.com)
[![PHP](https://img.shields.io/badge/PHP-7.4%20–%208.5-777BB4.svg?style=flat-square)](https://php.net)
[![License](https://img.shields.io/badge/license-MageMe%20EULA-blue.svg?style=flat-square)](https://mageme.com/license/)

Foundation module for all [MageMe extensions](https://mageme.com) for Magento 2. Provides the shared infrastructure used across the MageMe product family: license activation, the admin module ecosystem panel, news feed integration, and shared utility libraries.

`mageme/module-core` is normally installed automatically as a dependency when you add any other MageMe extension. You rarely need to install it on its own.

### What it provides

- **License management** — activate, deactivate, and verify MageMe extension licenses against `license.mageme.com` from each module's admin configuration section. Status updates live on page load without blocking the admin UI.
- **Module ecosystem panel** — admin block injected into every MageMe module's configuration page. Shows the product family overview, installed add-ons, available updates, license status, and quick links to Renew, Get Pro, or Buy.
- **News feed** — surfaces MageMe announcements in the Magento admin notifications inbox through Magento's standard `AdminNotification` infrastructure.
- **Shared utilities** — locale-aware date and time formatting, client IP detection through proxies, static asset content inlining, area detection helpers, and a self-sizing admin multiselect form field.
- **Bundled JS libraries** — SweetAlert2 and Tingle modal, shared by other MageMe modules' storefront UI to avoid duplication.

### Requirements

- Magento 2.4.x (Open Source or Commerce)
- PHP 7.4, 8.0, 8.1, 8.2, 8.3, 8.4, or 8.5
- PHP `curl`, `intl`, and `json` extensions

### Installation

In most cases `mageme/module-core` is pulled in automatically as a dependency of another MageMe extension. To install it standalone:

```
composer require mageme/module-core
bin/magento setup:upgrade
bin/magento cache:flush
```

### MageMe extensions that depend on this module

[**MageMe WebForms 3**](https://mageme.com/magento-2-form-builder.html) — Magento 2 form builder with conditional fields, multi-step layouts, file uploads, approval workflows, and a full integration stack:

- [Salesforce](https://github.com/mageme/module-webforms-3-salesforce) — create leads with campaign tracking
- [HubSpot](https://github.com/mageme/module-webforms-3-hubspot) — sync contacts, companies, and tickets
- [Zoho CRM & Desk](https://github.com/mageme/module-webforms-3-zoho) — create leads and helpdesk tickets
- [Freshdesk](https://github.com/mageme/module-webforms-3-freshdesk) — support tickets with agent routing
- [Zendesk](https://github.com/mageme/module-webforms-3-zendesk) — tickets with custom field types
- [Klaviyo](https://github.com/mageme/module-webforms-3-klaviyo) — profiles and email lists
- [Mailchimp](https://github.com/mageme/module-webforms-3-mailchimp) — audience subscriptions
- [Zapier](https://github.com/mageme/module-webforms-3-zapier) — connect forms to 7000+ apps

[**MageMe Hide Price**](https://mageme.com/magento-2-hide-price-extension.html) — control catalog visibility. Hide prices and the Add to Cart button from specific customer groups or per-product, with optional replacements: a sign-in button, an info alert, or a Request a Price form that emails the admin and the customer.

[**MageMe EasyQuote**](https://mageme.com/magento-2-quote-extension.html) — B2B request-a-quote workflow. Customers submit quote requests from the cart, admins respond with custom per-item pricing, volume tiers, custom shipping, and discounts. Full quote lifecycle, two-way messaging thread with attachments, PDF and CSV export, GraphQL and REST APIs.

[**MageMe EU Withdrawal**](https://mageme.com/magento-2-withdrawal-button-extension.html) — EU consumer right-of-withdrawal compliance. Adds the statutory "Withdraw from Contract" flow for B2C distance and off-premises contracts under Article 11a of Directive 2011/83/EU (as amended by Directive (EU) 2023/2673), effective 19 June 2026. Customers withdraw within the 14-day cooling-off period, with full audit trail, evidence capture, and admin approval workflow.

See the full catalog at [mageme.com](https://mageme.com).

### Custom Magento development

Need a feature an extension doesn't cover, or a bespoke Magento build? MageMe takes on custom extension development and integration work.

→ **[Custom Magento development](https://mageme.com/magento-services/custom-development)**

### Support

- Documentation: [docs.mageme.com](https://docs.mageme.com)
- Bug reports and feature requests: [GitHub Issues](https://github.com/mageme/module-core/issues)

### License

Governed by the **MageMe End User License Agreement** ([mageme.com/license](https://mageme.com/license/)). Distributed free of charge as the shared foundation for MageMe extensions.

---

**MageMe** builds Magento 2 and Adobe Commerce extensions for B2B merchants — form building, quoting, catalog control, and EU compliance.

## Changelog

- Fix: stopped repeated license warnings from filling the system log
- Fix: license-activation admin notice now shows readable text instead of raw markup
- Fix: category selection fields in add-ons load correctly again
- Fix: admin license panel now respects the store's translations
- Fix: restored PHP 7.4 compatibility
* Other: loading indicator while the extensions panel loads
* Other: Marketplace coding-standard compliance, added tests, and internal cleanup

### 2.0.0

+ New: redesigned and reworked license activation and information UI
+ New: ecosystem block embedded in every MageMe config section — license activation plus version info for the module and its add-ons
+ New: Renew and Get Pro shortcuts in the module ecosystem panel
* Other: removed legacy Information & Licenses admin page

## Recent Versions

| Version | Released |
|---|---|
| 2.0.1 | 2026-06-14 |
| 2.0.0 | 2026-06-01 |

## Dependencies

### Require

| Package | Constraint |
|---|---|
| magento/framework | * |
| magento/module-admin-notification | * |
| magento/module-backend | * |
| magento/module-config | * |
| magento/module-store | * |
| php | ~7.4.0\|\|~8.0.0\|\|~8.1.0\|\|~8.2.0\|\|~8.3.0\|\|~8.4.0\|\|~8.5.0 |
| psr/log | * |

## Quality

Latest release (2.0.1) 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 | Pass | Pass | – | – |
| 2.4.8 | – | Pass | Pass | – |
| 2.4.9 | – | – | Pass | Pass |


### 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 | Warning | 155 | 155 warnings (ruleset: Magento2) — 17 auto-fixable with phpcbf |
| PHPMD | Warning | 18 | 18 rule violations (MissingImport:4, CyclomaticComplexity:4, NPathComplexity:4, UnusedFormalParameter:3, ExcessiveParameterList:2) |
| Cpd | Warning | 1 | 1 duplicated chunk spanning 55 total lines (min-lines=5, min-tokens=70) |
| Composer validate | Info | 7 | valid; 7 advisory notes (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 | 20 | 20 | – | – |
| 2.4.8 | – | 20 | 20 | – |
| 2.4.9 | – | – | 18 | 18 |


### 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 | Pass | 0 |  |

## 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=["mageme/module-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

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

