PHPackages                             shiwolang/base - 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. shiwolang/base

ActiveLibrary

shiwolang/base
==============

v0.0.1(10y ago)011PHPPHP &gt;=5.5.0

Since Nov 28Pushed 10y ago1 watchersCompare

[ Source](https://github.com/shiwolang/base)[ Packagist](https://packagist.org/packages/shiwolang/base)[ RSS](/packages/shiwolang-base/feed)WikiDiscussions master Synced 2mo ago

READMEChangelog (1)DependenciesVersions (2)Used By (0)

RapidObject PHP基类组件
===================

[](#rapidobject-php基类组件)

- PHP 多继承 Mixin
- PHP getter setter

\##使用方式

\###通过composer安装

```
$ composer require shiwolang/base

```

\###多继承

```
class Nihao1 extends Object
{
    public $nihao = "asdf";
    public function nihao()
    {
        echo "nihao1";
    }
}
class Nihao2 extends Object
{
    public function nihao()
    {
        echo "nihao2";
    }
}
class Nihao3 extends Object
{
}
class Nihao4 extends Object
{
    public $nihao = "asdf";

    protected static function extend()
    {
        return parent::extend(Nihao1::className(), Nihao2::className());
    }

    public static function hello()
    {

        echo "asdf";
    }
}
class Nihao5 extends Object
{
    protected static function extend()
    {
        return parent::extend(Nihao3::className());
    }
}
class Nihao6 extends Object
{
    protected static function extend()
    {
        $aa = parent::extend(Nihao4::className(), Nihao5::className());

        return $aa;
    }
}
```

\###查询执行顺序

```
var_dump(Nihao6::__mro__());
/**结果**
array(5) {
  [0] =>
  string(23) "test\base\object\Nihao4"
  [1] =>
  string(23) "test\base\object\Nihao1"
  [2] =>
  string(23) "test\base\object\Nihao2"
  [3] =>
  string(23) "test\base\object\Nihao5"
  [4] =>
  string(23) "test\base\object\Nihao3"
}
**/
```

\###组件使用思路 组件利用PHP的特性完成的类多继承的Mixin，给PHP开发提供更多的开发思路。

###  Health Score

22

—

LowBetter than 22% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community7

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

3821d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/1bf0f9fca21d6e0b75646cd8febe1cf5caf1ed800392407d3aab3b2cf47d148a?d=identicon)[shiwolang](/maintainers/shiwolang)

---

Top Contributors

[![shiwolang](https://avatars.githubusercontent.com/u/5253315?v=4)](https://github.com/shiwolang "shiwolang (5 commits)")

### Embed Badge

![Health badge](/badges/shiwolang-base/health.svg)

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

PHPackages © 2026

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