bagf/dynamic

多功能动态/混合类生成库,适用于需要运行时演变的现有类或对象。

dev-master 2017-01-15 22:08 UTC

This package is not auto-updated.

Last update: 2024-09-28 22:52:56 UTC


README

动态/混合类生成库,适用于多种场景。此库可以应用于需要运行时演变的现有类或对象。

安装

composer require bagf/dynamic

示例

@todo 更多文档

        $profile = \Bagf\Dynamic\Builder::fromInstance($profile)
            ->implement(SendInvitation::class)
            ->shareTrait(InviteUsers::class)
            ->instance();