PHPackages                             lzhy/cloudmarket - 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. lzhy/cloudmarket

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

lzhy/cloudmarket
================

国内各大云市场sass快速接入

1.0.1(4y ago)07MITPHPPHP &gt;=7.2

Since Jul 25Pushed 4y ago1 watchersCompare

[ Source](https://github.com/sjywz/cloudmarket)[ Packagist](https://packagist.org/packages/lzhy/cloudmarket)[ RSS](/packages/lzhy-cloudmarket/feed)WikiDiscussions master Synced today

READMEChangelog (4)DependenciesVersions (5)Used By (0)

国内各大云市场sass快速接入
===============

[](#国内各大云市场sass快速接入)

支持百度、京东、华为、腾讯、金山

### 要求

[](#要求)

1. PHP &gt;= 7.2
2. **[Composer](https://getcomposer.org/)**
3. openssl 拓展 (华为、金山需要)

### 说明

[](#说明)

- 接入前请先仔细阅读各大应用市场接入文档
- 华为敏感数据加密算法请选择：AES128\_CBC\_PKCS5Padding

### 安装

[](#安装)

`composer require lzhy/cloudmarket`

### 初始化

[](#初始化)

```
use Lzhy\Cloudmarket\Market;

/** $cloud取值：jd/bce/hce/tce/ksyun **/
$market = new Market($cloud,$keyortoken) //百度
$market->checkSign(); //效验
$market->input($unify = false); //参数$unify 是否统一部分参数
//除了百度，华为、金山之外可自行返回json
$market->response($data); //包装返回
```

### 单独实例

[](#单独实例)

```
use Lzhy\Cloudmarket\Support\Bce;
use Lzhy\Cloudmarket\Support\Hce;
use Lzhy\Cloudmarket\Support\Jd;
use Lzhy\Cloudmarket\Support\Ksyun;
use Lzhy\Cloudmarket\Support\Tce;

//以百度为例
$bMarket = new Bce($keyortoken);
$bMarket->checkSign(); //效验
$bMarket->unify(false)->input($parse = false); //请求参数 如果是金山云或华为云请传入true解析敏感加密数据
//除了百度，华为、金山之外可自行返回json
$bMarket->response($data); //返回
```

### 统一参数

[](#统一参数)

统一参数后参数有：

```
action //操作
orderId //订单id
userId //用户id
productId //商品id
skuCode //商品规格
expireTime //过期时间，时间戳
instanceId //实例id，操作为新购/创建时没有
mobile //华为/金山/京东可能有
email //华为/金山/京东可能有

```

### License

[](#license)

MIT

###  Health Score

22

—

LowBetter than 22% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity49

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 ~1 days

Total

4

Last Release

1745d ago

Major Versions

0.0.2 → 1.0.02021-07-27

### Community

Maintainers

![](https://www.gravatar.com/avatar/3790ba26295b4bc7e326db2f51e888303b5f75e274057440fbf8a9385f3d748c?d=identicon)[sjywz](/maintainers/sjywz)

---

Top Contributors

[![sjywz](https://avatars.githubusercontent.com/u/9930375?v=4)](https://github.com/sjywz "sjywz (16 commits)")

---

Tags

sassmarketcloudmarket

### Embed Badge

![Health badge](/badges/lzhy-cloudmarket/health.svg)

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

###  Alternatives

[scssphp/scssphp

scssphp is a compiler for SCSS written in PHP.

62827.7M220](/packages/scssphp-scssphp)[markstory/asset_compress

An asset compression plugin for CakePHP. Provides file concatenation and a flexible filter system for preprocessing and minification.

3761.0M11](/packages/markstory-asset-compress)[ssnepenthe/color-utils

A PHP library for performing SASS-like color manipulations.

631.1M10](/packages/ssnepenthe-color-utils)[markstory/mini-asset

An asset compression library. Provides file concatenation and a flexible filter system for preprocessing and minification.

66741.1k3](/packages/markstory-mini-asset)[bukashk0zzz/yml-generator

YML (Yandex Market Language) file generator

116186.3k](/packages/bukashk0zzz-yml-generator)[symfonycasts/sass-bundle

Delightful Sass Support for Symfony + AssetMapper

46659.0k4](/packages/symfonycasts-sass-bundle)

PHPackages © 2026

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