PHPackages                             kangzhengliang/dcat-k3-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. [Utility &amp; Helpers](/categories/utility)
4. /
5. kangzhengliang/dcat-k3-sku

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

kangzhengliang/dcat-k3-sku
==========================

sku表单扩展

1.0.1(4y ago)09MITPHPPHP &gt;=7.1.0

Since Apr 8Pushed 4y ago1 watchersCompare

[ Source](https://github.com/kangzhengliang/dcat-k3-sku)[ Packagist](https://packagist.org/packages/kangzhengliang/dcat-k3-sku)[ Docs](https://github.com/kangzhengliang/dcat-k3-sku)[ RSS](/packages/kangzhengliang-dcat-k3-sku/feed)WikiDiscussions main Synced yesterday

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

Dcat Admin 产品sku扩展
==================

[](#dcat-admin-产品sku扩展)

基于Dcat Admin SKU扩展增强版修改（[https://github.com/Abbotton/dcat-sku-plus）](https://github.com/Abbotton/dcat-sku-plus%EF%BC%89)

$form-&gt;sku('skus.sku', '属性')
 -&gt;customFormat(function()use ($upload\_img\_url){
 return \[
 'properties' =&gt; $rs-&gt;data, //所有的属性
 'img\_upload\_url' =&gt; $upload\_img\_url, //图片上传地址
 'product\_property' =&gt; $this-&gt;properties, //产品已有属性
 'product\_skus' =&gt; $this-&gt;skus //产品sku数据
 \];
}) -&gt;saving(function ($value){ return json\_decode($value,true); }) -&gt;required();

properties数据包含所有的发布数据属性（即销售属性和非销售属性）
格式\[{
 category\_id: "9999" 分类id
 en\_name: "color" 属性英文名称
 form\_type: "checkbox" html格式
 id: "1" 属性id
 is\_multiple: "1" 是否多选
 is\_must: "1" 是否必选
 is\_sale: "1" 是否销售属性
 state: "1" 状态
 title: "颜色" 属性名称
 value: \[{
 id: "1" 属性值id
 image: "" 图片
 property\_name\_id: "1" 属性id
 state: "1" 属性状态
 value: "黑色" 属性值
 }\]
}\]

product\_property 产品已选择的属性 格式：属性id:属性值id,多个以;分隔

product\_skus 产品sku 格式\[{
 id: 73 sku的id
 note: "1:1-不是那么黑;2:7-偏小" 备注
 pic: "" 图片
 price: "35.00" 散拿价
 product\_id: 1000001 产品id
 properties: "1:1,2:7" sku组合
 state: 1 状态
 stock: 9999 库存
 wholesale\_price: "30.00"整拿价
}\]

非销售属性需要一个隐藏域
$form-&gt;hidden('propertys.property')
-&gt;saving(function ($value){
 return json\_decode($value,true);
})
-&gt;setElementClass('property');

###  Health Score

21

—

LowBetter than 17% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity46

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

Every ~0 days

Total

2

Last Release

1594d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/3c840953b94a979a3f65f494d0ac2e1f2ba26b2aa8d4e75f2967e097f00fc936?d=identicon)[kangzhengliang](/maintainers/kangzhengliang)

---

Top Contributors

[![kangzhengliang](https://avatars.githubusercontent.com/u/27000787?v=4)](https://github.com/kangzhengliang "kangzhengliang (2 commits)")

---

Tags

extensiondcat admin

### Embed Badge

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

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

###  Alternatives

[abbotton/dcat-sku-plus

基于Dcat Admin的SKU扩展增强版

532.3k](/packages/abbotton-dcat-sku-plus)[sparkinzy/dcat-distpicker

省市区地址选择器，支持select2

262.9k1](/packages/sparkinzy-dcat-distpicker)[sparkinzy/dcat-marketplace

Dcat扩展市场

381.3k](/packages/sparkinzy-dcat-marketplace)

PHPackages © 2026

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