PHPackages                             huid/container - 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. huid/container

ActiveLibrary

huid/container
==============

php code template

v1.0(5y ago)111MITPHPPHP &gt;=7.1

Since Dec 14Pushed 5y ago1 watchersCompare

[ Source](https://github.com/zhanghuid/application)[ Packagist](https://packagist.org/packages/huid/container)[ RSS](/packages/huid-container/feed)WikiDiscussions master Synced 1mo ago

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

### 可扩展的运行 `php` 代码容器

[](#可扩展的运行-php-代码容器)

---

#### Feature

[](#feature)

1. 直接 `bind` 定回调

```
use Huid\Application;

$application = new Application

$application->bind('hello', function () {
    return 'hello world';
});

echo $application->hello();
```

2. 直接注入 `plugin`

```
# 定义如下 `plugin` 文件
class Huid\Application\plugins;

class HelloWorld implements PluginContract
{

    public static function install(Application $application, ...$opt)
    {
        $application->bind('hello', function () {
            return 'hello world plugin';
        });
    }
}

# 运行
use Huid\Application;
use Huid\Application\Plugins\HelloWorldPlugin;

$application = new Application

$application->use(HelloWorldPlugin::class);
echo $application->hello();
```

### Inspire

[](#inspire)

[QueryList](https://github.com/jae-jae/QueryList)

###  Health Score

22

—

LowBetter than 22% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity48

Maturing project, gaining track record

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

1978d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/31cd7e8d836d375795c41137e75a773ff2ca63b8c28ebab802860b5bdeb3b966?d=identicon)[huid](/maintainers/huid)

---

Tags

plugins

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/huid-container/health.svg)

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

###  Alternatives

[robinherbots/jquery.inputmask

Inputmask is a javascript library which creates an input mask. Inputmask can run against vanilla javascript, jQuery and jqlite.

6.5k276.6k4](/packages/robinherbots-jqueryinputmask)[tgmpa/tgm-plugin-activation

TGM Plugin Activation is a PHP library that allows you to easily require or recommend plugins for your WordPress themes (and plugins).

1.8k222.5k13](/packages/tgmpa-tgm-plugin-activation)[awcodes/filament-quick-create

Plugin for Filament Admin that adds a dropdown menu to the header to quickly create new items.

246177.6k7](/packages/awcodes-filament-quick-create)[awcodes/filament-versions

A mostly useless package to display framework versions at the bottom of the navigation panel.

4370.2k6](/packages/awcodes-filament-versions)[glpi-project/tools

Various tools for GLPI and its plugins

12710.9k4](/packages/glpi-project-tools)[philippemarcmeyer/fieldslinker

Designed for matching files headers to database fields during the process importing. Allows drawing links between elements of 2 lists.

2482.9k](/packages/philippemarcmeyer-fieldslinker)

PHPackages © 2026

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