PHPackages                             foreverglory/executor - 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. foreverglory/executor

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

foreverglory/executor
=====================

executor

v1.0.0(10y ago)019MITPHP

Since Jun 16Pushed 10y ago1 watchersCompare

[ Source](https://github.com/ForeverGlory/Executor)[ Packagist](https://packagist.org/packages/foreverglory/executor)[ Docs](http://foreverglory.me)[ RSS](/packages/foreverglory-executor/feed)WikiDiscussions master Synced 3w ago

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

Glory\\Executor
===============

[](#gloryexecutor)

执行指定命名空间下的类 execute namespace\\\*-&gt;execute()
-----------------------------------------------

[](#执行指定命名空间下的类-execute-namespace-execute)

```
//src/app/install/User.php
namespace App\Install;

use Glory\Executor\Mission;

class User extends Mission
{
    //The greater the number the first execution, default 0.
    public function getPriority()
    {
        return 0;
    }

    //Whether can be allowed to execute.
    public function isValid()
    {
        return isInstall()? false: true;
    }

     public function execute()
    {
        //you execute code.
    }
}

```

```
use Glory\Executor\Executor;

$executor = new Executor();
$executor->addNamespace('App\\Install', getRealpath('app\\install'));
$executor->execute();
//execute App\Install\*->execute()
```

### Symfony Bundle Usage

[](#symfony-bundle-usage)

Configure in you bundle

```
services:
    appbundle.executor:
        class: Glory\Executor\Bundle\ContainerAwareExecutor
        calls:
            - [ setContainer, [@service_container] ]
            - [ setEventDispatcher, [@event_dispatcher] ]
```

```
$executor = $this->getContainer()->get('appbundle.executor');

foreach ($this->getContainer()->get('kernel')->getBundles() as $bundle) {
    $executor->addNamespace($bundle->getNamespace() . '\\Install', $bundle->getPath() . '\\Install');
}
$executor->execute();
foreach ($executor->getMissions() as $mission) {
    var_dump(get_class($mission), $mission->getResult());
}
// 将按顺序执行所有 Bundle\Install\* 类
// *Bundle\Install\*->execute();
```

```
namespace AppBundle\Install;

use Glory\Executor\Mission;
use Glory\Executor\Bundle\ContainerAwareMission;

class UserInstall extends ContainerAwareMission
{

    public function execute()
    {
        //User Install Code
    }

}
```

###  Health Score

27

—

LowBetter than 47% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

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

3660d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/6f2db77628f7824d4dda8968f3dd7f314800bb3ae6663d788cd6614e92623695?d=identicon)[foreverglory](/maintainers/foreverglory)

---

Top Contributors

[![foreverglory](https://avatars.githubusercontent.com/u/1069963?v=4)](https://github.com/foreverglory "foreverglory (8 commits)")

---

Tags

libraryexecutor

### Embed Badge

![Health badge](/badges/foreverglory-executor/health.svg)

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

###  Alternatives

[friendsofphp/php-cs-fixer

A tool to automatically fix PHP code style

13.5k245.4M23.9k](/packages/friendsofphp-php-cs-fixer)[symfony/framework-bundle

Provides a tight integration between Symfony components and the Symfony full-stack framework

3.6k246.0M11.1k](/packages/symfony-framework-bundle)[civicrm/civicrm-core

Open source constituent relationship management for non-profits, NGOs and advocacy organizations.

749284.3k35](/packages/civicrm-civicrm-core)[drupal/core

Drupal is an open source content management platform powering millions of websites and applications.

19564.8M1.6k](/packages/drupal-core)[sulu/sulu

Core framework that implements the functionality of the Sulu content management system

1.3k1.4M196](/packages/sulu-sulu)[drupal/core-recommended

Locked core dependencies; require this project INSTEAD OF drupal/core.

6941.5M396](/packages/drupal-core-recommended)

PHPackages © 2026

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