PHPackages                             daichongweb/dcat-sku - 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. daichongweb/dcat-sku

ActiveLibrary

daichongweb/dcat-sku
====================

Dcat Sku扩展

010JavaScript

Since May 26Pushed 3y ago1 watchersCompare

[ Source](https://github.com/daichongweb/dcat-sku)[ Packagist](https://packagist.org/packages/daichongweb/dcat-sku)[ RSS](/packages/daichongweb-dcat-sku/feed)WikiDiscussions master Synced 4w ago

READMEChangelogDependenciesVersions (1)Used By (0)

dcat-admin-sku 商品SKU
====================

[](#dcat-admin-sku-商品sku)

[![](https://camo.githubusercontent.com/5bdc768ded4c32e90dd259d47ecb38e780f5d34b303f670dfa717b5e08b2d70a/687474703a2f2f696d6167652e6c616c616c6f76652e6e65742f696d616765732f736b752e706e67)](https://camo.githubusercontent.com/5bdc768ded4c32e90dd259d47ecb38e780f5d34b303f670dfa717b5e08b2d70a/687474703a2f2f696d6167652e6c616c616c6f76652e6e65742f696d616765732f736b752e706e67)

安装
--

[](#安装)

```
composer require zhy/dcat-admin-sku
```

配置
--

[](#配置)

### 数据库字段配置

[](#数据库字段配置)

- 数据类型json

### 使用方法

[](#使用方法)

```
$form->sku('skuField','商品SKU');
```

### 其他说明

[](#其他说明)

本扩展只会将SKU数据写指定的字段中，如需个性化处理数据，请在【表单回调】中处理

图片上传与`config/admin.php中upload.disk`一致

默认数据格式

```
{
    "type": "many",
    "attrs": {
        "CPU": ["两核","四核"],
        "内存": ["4G","8G","16G"]
    },
    "sku": [
        {
            "CPU": "两核",
            "内存": "4G",
            "pic": "http://ladmin.test/storage/363a08c4d0841f61f79ef5466ff31f9662021a831f001.png",
            "price": "800",
            "stock": "999"
        },
        {
            "CPU": "两核",
            "内存": "8G",
            "pic": "",
            "price": "1000",
            "stock": "999"
        },
        {
            "CPU": "两核",
            "内存": "16G",
            "pic": "http://ladmin.test/storage/363a08c4d0841f61f79ef5466ff31f9662021a8881537.png",
            "price": "0",
            "stock": "999"
        },
        {
            "CPU": "四核",
            "内存": "4G",
            "pic": "",
            "price": "0",
            "stock": "999"
        },
        {
            "CPU": "四核",
            "内存": "8G",
            "pic": "",
            "price": "0",
            "stock": "999"
        },
        {
            "CPU": "四核",
            "内存": "16G",
            "pic": "",
            "price": "0",
            "stock": "999"
        }
    ]
}
```

```
// 处理数据
$form->saving(function($form) {
    dd($form->skuField);
});
```

开源协议
----

[](#开源协议)

Dcat Admin Sku 遵循 MIT 开源协议。

###  Health Score

15

—

LowBetter than 3% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity25

Early-stage or recently created project

 Bus Factor1

Top contributor holds 70.6% 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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/b10ad1cf921e1d6b46eb15353ea49f876fad511d5581b8d3eba194a4f863cd30?d=identicon)[DaiChongyu](/maintainers/DaiChongyu)

---

Top Contributors

[![daichongweb](https://avatars.githubusercontent.com/u/22912524?v=4)](https://github.com/daichongweb "daichongweb (12 commits)")[![zhengheyang1](https://avatars.githubusercontent.com/u/24806690?v=4)](https://github.com/zhengheyang1 "zhengheyang1 (5 commits)")

### Embed Badge

![Health badge](/badges/daichongweb-dcat-sku/health.svg)

```
[![Health](https://phpackages.com/badges/daichongweb-dcat-sku/health.svg)](https://phpackages.com/packages/daichongweb-dcat-sku)
```

PHPackages © 2026

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