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. magtools/m2-core

ActiveMagento2-module

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

Core Module

0.1.6(2mo ago)14254Apache-2.0PHP

Since Mar 11Pushed 2mo 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 1mo ago

READMEChangelog (4)Dependencies (1)Versions (5)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

41

—

FairBetter than 89% of packages

Maintenance84

Actively maintained with recent releases

Popularity17

Limited adoption so far

Community15

Small or concentrated contributor base

Maturity42

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 75% 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 ~482 days

Total

4

Last Release

83d 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 (18 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

[smile/elasticsuite

Magento 2 merchandising and search engine built on ElasticSearch

8044.5M33](/packages/smile-elasticsuite)[mollie/magento2

Mollie Payment Module for Magento 2

1121.6M10](/packages/mollie-magento2)[smile/module-debug-toolbar

Smile Debug Toolbar

146247.6k2](/packages/smile-module-debug-toolbar)[lillik/magento2-price-decimal

Magento 2 Price Decimal Precision

111147.5k](/packages/lillik-magento2-price-decimal)[magepal/magento2-customeraccountlinksmanager

Customer Account Links Manager for Magento2 allows you to quickly and easily remove unwanted links from customer account dashboard

4084.9k](/packages/magepal-magento2-customeraccountlinksmanager)[myparcelnl/magento

A Magento 2 module that creates MyParcel labels

1856.7k](/packages/myparcelnl-magento)

PHPackages © 2026

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