PHPackages                             magefan/module-plugin-sortorder-example - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. magefan/module-plugin-sortorder-example

ActiveMagento2-module[Utility &amp; Helpers](/categories/utility)

magefan/module-plugin-sortorder-example
=======================================

Magefan\_PluginSortOrderExample

2.0.0(4y ago)510PHP

Since Nov 15Pushed 4y ago1 watchersCompare

[ Source](https://github.com/magefan/module-plugin-sortorder-example)[ Packagist](https://packagist.org/packages/magefan/module-plugin-sortorder-example)[ RSS](/packages/magefan-module-plugin-sortorder-example/feed)WikiDiscussions main Synced 3w ago

READMEChangelog (1)DependenciesVersions (2)Used By (0)

[Magento 2 Plugin](https://magefan.com/blog/create-plugin-in-magento-2) Sort Order
==================================================================================

[](#magento-2-plugin-sort-order)

Installation
------------

[](#installation)

```
composer require magefan/module-plugin-sortorder-example
bin/magento setup:upgrade --keep-generated
bin/magento setup:di:compile

```

How to test?
------------

[](#how-to-test)

Visit url:

http://\[mydomain.com\]/pluginsortorderexample/pluginsortorder/example

You sould see

```
-PluginA::beforeDispatch
---PluginA::aroundDispatch // before executing callable
-----PluginB::beforeDispatch
-------PluginB::aroundDispatch // before executing callable
---------PluginC::beforeDispatch
-----------PluginC::aroundDispatch // before executing callable
-------------Action::dispatch()
-----------PluginC::aroundDispatch // after executing callable
---------PluginC::afterDispatch
-------PluginB::aroundDispatch // after executing callable
-----PluginB::afterDispatch
---PluginA::aroundDispatch // after executing callable
-PluginA::afterDispatch

```

Read more about Magento [Magento 2 Plugin Sort Order](https://magefan.com/blog/prioritizing-plugins-in-magento-2).

###  Health Score

25

—

LowBetter than 35% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity50

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 66.7% 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

Unknown

Total

1

Last Release

1691d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/48525307?v=4)[Ihor Vansach](/maintainers/IhorVansach)[@ihorvansach](https://github.com/ihorvansach)

---

Top Contributors

[![magefan](https://avatars.githubusercontent.com/u/9151916?v=4)](https://github.com/magefan "magefan (2 commits)")[![ihorvansach](https://avatars.githubusercontent.com/u/48525307?v=4)](https://github.com/ihorvansach "ihorvansach (1 commits)")

### Embed Badge

![Health badge](/badges/magefan-module-plugin-sortorder-example/health.svg)

```
[![Health](https://phpackages.com/badges/magefan-module-plugin-sortorder-example/health.svg)](https://phpackages.com/packages/magefan-module-plugin-sortorder-example)
```

PHPackages © 2026

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