PHPackages                             navarr/easy-upgrades - 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. navarr/easy-upgrades

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

navarr/easy-upgrades
====================

A simple trait to make it easier to upgrade things

v1.0.0(9y ago)026.9k↓27.8%MITPHP

Since Aug 30Pushed 9y agoCompare

[ Source](https://github.com/navarr/easy-upgrades)[ Packagist](https://packagist.org/packages/navarr/easy-upgrades)[ RSS](/packages/navarr-easy-upgrades/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (2)Used By (0)

Easy Upgrades!
==============

[](#easy-upgrades)

"Wow, I didn't know I needed this" - Everyone, ever

How to install
--------------

[](#how-to-install)

```
composer require navarr/easy-upgrades

```

> Holy crap, that's it?

OF COURSE IT IS! What year do you think it is?!

How to use
----------

[](#how-to-use)

In your class, `use CallableUpdateTrait;`, like so:

```
class SomeCrappyClass
{
    use CallableUpdateTrait;

    public function somethingTriggeredExternally($currentVersion, $futureVersion)
    {
        $this->runAt('2.0.0', $currentVersion, function() {
            echo 'Hello, 2.0.0!',PHP_EOL;
        });
    }
}

```

Basically, using CallableUpdateTrait gives you the `runAt` method. Neat stuff!

Wait, this only contains one class that does practically nothing
----------------------------------------------------------------

[](#wait-this-only-contains-one-class-that-does-practically-nothing)

Yes, but now you don't have to write it into every project, or every module, or whatever.

Why this?
---------

[](#why-this)

It's a common function I wish I had in Magento 2 - so I made it. It doesn't need Magento, or have any dependencies. It just does what it says on the tin.

###  Health Score

33

—

LowBetter than 75% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity26

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity63

Established project with proven stability

 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.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

3548d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/24959115e049fb1d71612462e9106b345b3e0e6126439493514018cd440e8937?d=identicon)[navarr](/maintainers/navarr)

---

Top Contributors

[![navarr](https://avatars.githubusercontent.com/u/145128?v=4)](https://github.com/navarr "navarr (2 commits)")

### Embed Badge

![Health badge](/badges/navarr-easy-upgrades/health.svg)

```
[![Health](https://phpackages.com/badges/navarr-easy-upgrades/health.svg)](https://phpackages.com/packages/navarr-easy-upgrades)
```

PHPackages © 2026

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