PHPackages                             magtools/m2-core - 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. [Framework](/categories/framework)
4. /
5. magtools/m2-core

ActiveMagento2-module[Framework](/categories/framework)

magtools/m2-core
================

Core Module

0.1.8(1mo ago)14884Apache-2.0PHP

Since Mar 11Pushed 1mo ago1 watchersCompare

[ Source](https://github.com/magtools/m2-core)[ Packagist](https://packagist.org/packages/magtools/m2-core)[ Docs](https://github.com/magtools)[ RSS](/packages/magtools-m2-core/feed)WikiDiscussions master Synced yesterday

READMEChangelog (5)Dependencies (2)Versions (6)Used By (4)

m2-core
=======

[](#m2-core)

Magento 2 core module

codeanalyzer.sh
---------------

[](#codeanalyzersh)

Copy the devops/codeanalyzer.sh file to the magento root and perform fast static code reviews. You also need to copy the devops/TestPR.xml ruleset file to app/devops/TestPr.xml to use option 4 and bitbucket pipeline.

$ bash codeanalyzer.sh

```
There are 3 available tools
1) phpcs
2) phpcbf
3) phpmd
4) testPR
5) HELP
which tool do you want to use? 3
you selected phpmd!

There are 5 available paths to process
1) app/code/Example/Core/
2) app/code/Example/Setup/
3) app/design/frontend/Example/
4) app/design/adminhtml/Example/
5) extensions/magtools/
which path do you want to process? 1
you selected app/code/Example/Core/!

Processed path app/code/Example/Core/ with phpmd, you can find the output in var/static/phpmd_Example_Core.txt

```

path extensions
---------------

[](#path-extensions)

The codeanalizer.sh utility references to an extensions path, this is an optional path for local composer repository.

```
"repositories": [
    {
        "type": "composer",
        "url": "https://repo.magento.com/"
    },
    {
        "type": "path",
        "url": "extensions/*/*",
        "options": {
            "symlink": true
        }
    }
],

```

Example:

```
[vendor]/[project] = composer.json package name
extensions/[vendor]/[project] or extensions/magtools/m2-core

```

devdump.sh
----------

[](#devdumpsh)

This is a dump script that do not export sensitive data from certain tables. You can find this file on devops folder.

Configure:

```
HOST="localhost"
USER="root"
PASSWORD="password"
PORT="3306"

```

Usage:

```
$ bash devdump.sh dbname
$ bash devdump.sh dbname compact #no sales info

```

bitbucket-pipelines.yml
-----------------------

[](#bitbucket-pipelinesyml)

This is a pipeline for bitbucket that runs on pull requests create/update events running code analysis tools. You will find this file on devops/bitbucket-pipelines.yml, also need to copy the devops/TestPR.xml ruleset file to app/devops/TestPr.xml to use bitbucket pipeline and codeanalyzer.sh option 4.

###  Health Score

43

—

FairBetter than 89% of packages

Maintenance90

Actively maintained with recent releases

Popularity17

Limited adoption so far

Community15

Small or concentrated contributor base

Maturity43

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 76% 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 ~381 days

Total

5

Last Release

48d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/54e13ba2dd89f50321d7788bea92619836e151bf7b8355f62237c1abc2ad17c1?d=identicon)[magtec77](/maintainers/magtec77)

---

Top Contributors

[![magtools](https://avatars.githubusercontent.com/u/73482190?v=4)](https://github.com/magtools "magtools (19 commits)")[![mgonzalez-summa](https://avatars.githubusercontent.com/u/1985208?v=4)](https://github.com/mgonzalez-summa "mgonzalez-summa (6 commits)")

---

Tags

magento2

### Embed Badge

![Health badge](/badges/magtools-m2-core/health.svg)

```
[![Health](https://phpackages.com/badges/magtools-m2-core/health.svg)](https://phpackages.com/packages/magtools-m2-core)
```

###  Alternatives

[magewirephp/magewire

A framework that makes building reactive and dynamic interfaces simple in Magento 2

2621.4M42](/packages/magewirephp-magewire)[smile/elasticsuite

Magento 2 merchandising and search engine built on ElasticSearch

8064.7M49](/packages/smile-elasticsuite)[mollie/magento2

Mollie Payment Module for Magento 2

1131.9M16](/packages/mollie-magento2)[run-as-root/magento2-prometheus-exporter

Magento2 Prometheus Exporter

68357.9k](/packages/run-as-root-magento2-prometheus-exporter)[myparcelnl/magento

A Magento 2 module that creates MyParcel labels

1860.2k](/packages/myparcelnl-magento)[opengento/module-category-import-export

This module add the capability to import and export the categories from the back-office.

1310.9k2](/packages/opengento-module-category-import-export)

PHPackages © 2026

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