PHPackages                             switon/invoker - 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. switon/invoker

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

switon/invoker
==============

Method invocation orchestration for Switon (standalone)

v1.0.0(1mo ago)0335MITPHPPHP &gt;=8.3CI passing

Since May 10Pushed 1mo agoCompare

[ Source](https://github.com/switon-php/invoker)[ Packagist](https://packagist.org/packages/switon/invoker)[ Docs](https://github.com/switon-php/invoker)[ RSS](/packages/switon-invoker/feed)WikiDiscussions main Synced 1w ago

READMEChangelogDependencies (5)Versions (2)Used By (5)

Switon Invoker Package
======================

[](#switon-invoker-package)

Method invocation orchestration for Switon Framework.

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

[](#installation)

```
composer require switon/invoker
```

**Requirements:** PHP 8.3+

Quick Start
-----------

[](#quick-start)

```
use ReflectionMethod;
use Switon\Binding\ArgumentsBinderInterface;
use Switon\Core\Attribute\Autowired;
use Switon\Invoking\InvokerInterface;

class Dispatcher
{
    #[Autowired] protected ArgumentsBinderInterface $argumentsBinder;
    #[Autowired] protected InvokerInterface $invoker;

    public function dispatch(object $controller, string $action): mixed
    {
        $method = new ReflectionMethod($controller, $action);
        $arguments = $this->argumentsBinder->resolve($method);

        return $this->invoker->invoke([$controller, $action], $arguments);
    }
}

class PostController
{
    public function showAction(int $id): array
    {
        return ['id' => $id];
    }
}
```

Docs:

This package owns the framework invoker contract: `Switon\Invoking\InvokerInterface`

Invocation hooks now live in `switon/invocation`.

License
-------

[](#license)

MIT.

###  Health Score

43

—

FairBetter than 89% of packages

Maintenance94

Actively maintained with recent releases

Popularity11

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity48

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

Unknown

Total

1

Last Release

31d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/dc0f20ad15b0ae9fbf9c6e2cd3008692b0c88a877ec8d3e0119211314bf86fc8?d=identicon)[switon](/maintainers/switon)

---

Top Contributors

[![switon-php](https://avatars.githubusercontent.com/u/247358032?v=4)](https://github.com/switon-php "switon-php (8 commits)")

---

Tags

dispatchinvokerreflectionswitoninvokerreflectiondispatchswiton

### Embed Badge

![Health badge](/badges/switon-invoker/health.svg)

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

###  Alternatives

[phpdocumentor/reflection-common

Common reflection classes used by phpdocumentor to reflect the code structure

9.1k725.9M34](/packages/phpdocumentor-reflection-common)[symfony/property-access

Provides functions to read and write from/to an object or array using a simple string notation

2.8k309.5M3.0k](/packages/symfony-property-access)[php-di/invoker

Generic and extensible callable invoker

26862.3M66](/packages/php-di-invoker)[phpdocumentor/reflection

Reflection library to do Static Analysis for PHP Projects

12624.8M137](/packages/phpdocumentor-reflection)[php-di/phpdoc-reader

PhpDocReader parses @var and @param values in PHP docblocks (supports namespaced class names with the same resolution rules as PHP)

7432.6M56](/packages/php-di-phpdoc-reader)[minime/annotations

The KISS PHP annotations library

229386.3k38](/packages/minime-annotations)

PHPackages © 2026

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