PHPackages                             eugene-petrov/magento2-plugin - 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. eugene-petrov/magento2-plugin

ActiveMagento2-module

eugene-petrov/magento2-plugin
=============================

Magento 2 plugin example

00PHP

Since Oct 21Pushed 4y ago1 watchersCompare

[ Source](https://github.com/eugene-petrov/magento2-plugin)[ Packagist](https://packagist.org/packages/eugene-petrov/magento2-plugin)[ RSS](/packages/eugene-petrov-magento2-plugin/feed)WikiDiscussions main Synced today

READMEChangelogDependenciesVersions (2)Used By (0)

[![ExtDN M2 Coding Standard](https://github.com/eugene-petrov/magento2-observer/actions/workflows/coding-standard.yml/badge.svg?branch=main)](https://github.com/eugene-petrov/magento2-observer/actions/workflows/coding-standard.yml)[![ExtDN M2 Mess Detector](https://github.com/eugene-petrov/magento2-observer/actions/workflows/mess-detector.yml/badge.svg?branch=main)](https://github.com/eugene-petrov/magento2-observer/actions/workflows/mess-detector.yml)[![ExtDN M2 PHPStan](https://github.com/eugene-petrov/magento2-observer/actions/workflows/phpstan.yml/badge.svg?branch=main)](https://github.com/eugene-petrov/magento2-observer/actions/workflows/phpstan.yml)

***Snippet\_Plugin***

Problem: you need to change any (almost any) public method.

[Here](http://devdocs.magento.com/guides/v2.1/extension-dev-guide/plugins.html) you can find more about plugins.

To enable this module execute:

- `php bin/magento --clear-static-content module:enable Snippet_Plugin`
- `php bin/magento setup:upgrade`

***Snippet\\Plugin\\Plugin\\Frontend\\ModifyHeader***file is an example of around and after plugins. 'Around' does nothing. While 'after' wraps into parentheses welcome message like this:

`(Default welcome msg!)`

***Snippet\\Plugin\\Plugin\\Frontend\\ModifyBreadcrumbs***file is an example of 'before' option. E.g. on detail product page breadcrumbs will look like this:

`(Home) > (Test Product)`

###  Health Score

15

—

LowBetter than 3% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity0

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity30

Early-stage or recently created project

 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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/559246b45d24bf8b8cb87f28bdbc68d98ee76c426f9cb1353d6067b4d8a08501?d=identicon)[eugene-petrov](/maintainers/eugene-petrov)

---

Top Contributors

[![eugene-petrov](https://avatars.githubusercontent.com/u/7125242?v=4)](https://github.com/eugene-petrov "eugene-petrov (5 commits)")

### Embed Badge

![Health badge](/badges/eugene-petrov-magento2-plugin/health.svg)

```
[![Health](https://phpackages.com/badges/eugene-petrov-magento2-plugin/health.svg)](https://phpackages.com/packages/eugene-petrov-magento2-plugin)
```

PHPackages © 2026

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