PHPackages                             jessegall/invader - 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. jessegall/invader

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

jessegall/invader
=================

A simple package to access private properties and methods without the use of reflection

v1.0.3(3y ago)141MITPHPPHP &gt;=8.1

Since Sep 8Pushed 3y ago1 watchersCompare

[ Source](https://github.com/jessegall/php-invader)[ Packagist](https://packagist.org/packages/jessegall/invader)[ RSS](/packages/jessegall-invader/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (1)Dependencies (1)Versions (5)Used By (0)

php-invader
===========

[](#php-invader)

A simple package to access private properties and methods without the use of reflection.

```
composer require jessegall/invader

```

Usage
-----

[](#usage)

```
class ExampleClass
{
    private string $property = 'value';

    private function method(): string
    {
        return 'value';
    }

    private function methodWithArgs($arg1, $arg2): string
    {
        return 'value';
    }
}

$example = new ExampleClass();

invade($example)->property; // Access private property
invade($example)->property = 'new value'; // Set private property
invade($example)->method(); // Call private method
invade($example)->methodWithArgs('arg1', 'arg2'); // Call private method with arguments

# -- Or --

(new Invader($example))->property; // Access private property
(new Invader($example))->property = 'new value'; // Set private property
(new Invader($example))->method(); // Call private method
(new Invader($example))->methodWithArgs('arg1', 'arg2'); // Call private method with arguments
```

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity59

Maturing project, gaining track record

 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

Every ~13 days

Total

4

Last Release

1306d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/0a13b52a17e71644445ec3597dc1c8faf54ebd8b6b087e219c672aae06ac5332?d=identicon)[JesseGall](/maintainers/JesseGall)

---

Top Contributors

[![jessegall](https://avatars.githubusercontent.com/u/11755417?v=4)](https://github.com/jessegall "jessegall (3 commits)")

---

Tags

invaderphp

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/jessegall-invader/health.svg)

```
[![Health](https://phpackages.com/badges/jessegall-invader/health.svg)](https://phpackages.com/packages/jessegall-invader)
```

###  Alternatives

[alekseon/module-cleanrunningjobs

Mark running cronjobs as error if older than 3 days

2438.6k](/packages/alekseon-module-cleanrunningjobs)

PHPackages © 2026

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