PHPackages                             mrs-joker/trade - 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. mrs-joker/trade

ActiveLibrary

mrs-joker/trade
===============

trade

0113PHP

Since Jan 14Pushed 7y agoCompare

[ Source](https://github.com/mrs-joker/trade)[ Packagist](https://packagist.org/packages/mrs-joker/trade)[ RSS](/packages/mrs-joker-trade/feed)WikiDiscussions master Synced today

READMEChangelogDependenciesVersions (1)Used By (0)

Trade
=====

[](#trade)

rbac

```
    Trade::make('rbac')->executeCommand('permission', [])->update(['id' => 1, 'display_name' => 'display_name','description'=>'goiyugoiuyg']);
    Trade::make('rbac')->executeCommand('role', [])->add(['name' => 'test', 'display_name' => 'display_name','description'=>'goiyugoiuyg']);
    Trade::make('rbac')->executeCommand('role', [])->update(['id' => 1, 'display_name' => 'display_name', 'description' => 'qqqq']);
    Trade::make('rbac')->executeCommand('role', [])->attachPermission(1, 2);
    Trade::make('rbac')->executeCommand('role', [])->syncPermission(1, [1]);
    array_pluck(Trade::make('rbac')->executeCommand('role')->cachedPermissions(1)->toArray(),'id');
    Trade::make('rbac')->executeCommand('role')->destory(1, true);
    Trade::make('rbac')->executeCommand('role')->restore(1);
    Trade::make('rbac')->executeCommand('role')->hasPermission(1,['test1','testq']);
    Trade::make('rbac')->executeCommand('user')->cachedRoles(1);
    Trade::make('rbac')->executeCommand('user')->hasRole(1, ['test']);
    Trade::make('rbac')->executeCommand('user')->can(1, ['test', 'ff']);
    Trade::make('rbac')->executeCommand('user')->detachRole(1, 1);
    Trade::make('rbac')->executeCommand('user')->attachRole(1, 1);

```

blade

```
                    @role('test')
                    This is visible to users with the admin role. Gets translated to
                    @endrole

                    @permission('test111')
                    permission
                    @endpermission

```

category

```
    Trade::make('category.menus')->add(['parent_id' => 6, 'name' => 'teqqst']);
    Trade::make('category.menus')->update(['id' => 2, 'parent_id' => 1, 'name' => 'test1ss1', 'additional_data' => ['id' => 2]]);
    Trade::make('category.menus')->cachedCategorys();
    Trade::make('category.menus')->destory(2);
    Trade::make('category.menus')->restore(2);

```

###  Health Score

20

—

LowBetter than 14% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community2

Small or concentrated contributor base

Maturity38

Early-stage or recently created project

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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/900c48b8e8585f925bcaf7eadb3e14bb36f0db1072bfb8b47739f6099301f0d8?d=identicon)[haiyang1200](/maintainers/haiyang1200)

### Embed Badge

![Health badge](/badges/mrs-joker-trade/health.svg)

```
[![Health](https://phpackages.com/badges/mrs-joker-trade/health.svg)](https://phpackages.com/packages/mrs-joker-trade)
```

PHPackages © 2026

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