PHPackages                             death\_satan/macro - 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. death\_satan/macro

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

death\_satan/macro
==================

PHP Class Macro helper

v1.0(4y ago)05MITPHPPHP &gt;=7.4

Since Jul 4Pushed 3y ago1 watchersCompare

[ Source](https://github.com/zds-s/macro)[ Packagist](https://packagist.org/packages/death_satan/macro)[ RSS](/packages/death-satan-macro/feed)WikiDiscussions master Synced 3w ago

READMEChangelogDependencies (1)Versions (2)Used By (0)

php class macro
===============

[](#php-class-macro)

```
class Test{
    use \DeathSatan\Macro\Macro;
}

Test::macro('test',function ($a){
    return $a;
},true);

Test::macro('demo',function ($a){
    return $a;
},false);

var_dump(Test::test(123));//123
var_dump((new Test)->demo(321));//321
```

###  Health Score

22

—

LowBetter than 21% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity48

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

Unknown

Total

1

Last Release

1460d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/1491884?v=4)[Jari Juslin](/maintainers/zds)[@zds](https://github.com/zds)

---

Top Contributors

[![zds-s](https://avatars.githubusercontent.com/u/49744633?v=4)](https://github.com/zds-s "zds-s (3 commits)")[![bbuugg](https://avatars.githubusercontent.com/u/64066545?v=4)](https://github.com/bbuugg "bbuugg (1 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/death-satan-macro/health.svg)

```
[![Health](https://phpackages.com/badges/death-satan-macro/health.svg)](https://phpackages.com/packages/death-satan-macro)
```

###  Alternatives

[pleonasm/merkle-tree

An implementation of a Merkle Tree in PHP

39804.5k34](/packages/pleonasm-merkle-tree)

PHPackages © 2026

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