PHPackages                             f-oris/easy-smartprogram - 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. [API Development](/categories/api)
4. /
5. f-oris/easy-smartprogram

ActiveLibrary[API Development](/categories/api)

f-oris/easy-smartprogram
========================

百度智能小程序SDK

1.1.0(6y ago)42.0kMITPHPPHP &gt;=7.1CI failing

Since Jun 21Pushed 6y agoCompare

[ Source](https://github.com/itsanr-oris/easy-smartprogram)[ Packagist](https://packagist.org/packages/f-oris/easy-smartprogram)[ RSS](/packages/f-oris-easy-smartprogram/feed)WikiDiscussions master Synced 6d ago

READMEChangelogDependencies (8)Versions (4)Used By (0)

EasySmartProgram
----------------

[](#easysmartprogram)

百度智能小程序SDK，参照[easy-wechat](https://github.com/overtrue/wechat)实现

[![Build Status](https://camo.githubusercontent.com/170e5125ffab0bf6418355c0c7fd5f06b7535e707c2c3ac7fccfed7574a1bce7/68747470733a2f2f7472617669732d63692e636f6d2f697473616e722d6f7269732f656173792d736d61727470726f6772616d2e7376673f6272616e63683d6d6173746572)](https://travis-ci.com/itsanr-oris/easy-smartprogram)[![codecov](https://camo.githubusercontent.com/cce8249a405f046f8bbbd9e1d228deca61a9c930c6e1a54035074701da800f3a/68747470733a2f2f636f6465636f762e696f2f67682f697473616e722d6f7269732f656173792d736d61727470726f6772616d2f6272616e63682f6d61737465722f67726170682f62616467652e737667)](https://codecov.io/gh/itsanr-oris/easy-smartprogram)[![Latest Stable Version](https://camo.githubusercontent.com/5922d8e9d1ea8e8fa6e959b9f4e086d2f9412b2bd39f58ff2e6a3e45cc8a8b04/68747470733a2f2f706f7365722e707567782e6f72672f662d6f7269732f656173792d736d61727470726f6772616d2f762f737461626c65)](https://packagist.org/packages/f-oris/easy-smartprogram)[![Latest Unstable Version](https://camo.githubusercontent.com/ad4af520c8963a5dc7e4543b2db1b7fd69aa5436b09dcd1dde4b89b8398fd83f/68747470733a2f2f706f7365722e707567782e6f72672f662d6f7269732f656173792d736d61727470726f6772616d2f762f756e737461626c65)](https://packagist.org/packages/f-oris/easy-smartprogram)[![Total Downloads](https://camo.githubusercontent.com/430b7e8a86687193f7d101ca9371b3a48383ce51445b8d425dd961992b7184cc/68747470733a2f2f706f7365722e707567782e6f72672f662d6f7269732f656173792d736d61727470726f6772616d2f646f776e6c6f616473)](https://packagist.org/packages/f-oris/easy-smartprogram)[![License](https://camo.githubusercontent.com/beeff56e5ec087727a1fb5277144a53ebe89e88d6c61ca3d7b4f9199e46c98a2/68747470733a2f2f706f7365722e707567782e6f72672f662d6f7269732f656173792d736d61727470726f6772616d2f6c6963656e7365)](https://packagist.org/packages/f-oris/easy-smartprogram)

功能
--

[](#功能)

- 小程序登录
- 小程序授权信息解密
- 小程序模板消息管理，发送模板消息
- swan\_id校验组件
- 信息流资源
- 获取unionid

安装
--

[](#安装)

```
composer require f-oris/easy-smartprogram
```

基本使用
----

[](#基本使用)

参考[easy-wechat](https://github.com/overtrue/wechat)使用文档，因为是仿着做的，所以小程序各组件提供的方法，含义，用法基本上和easy-wechat一致

获取unionid
---------

[](#获取unionid)

```
// 配置好config，获取code...

$app = new Application($config);
$session = $app->auth->session($code);
$uionidData = $app->auth->getUnionid($session['openid']);
// {"unionid": "St6PVMkgMDeh92Uq2EWfx6H"}
```

信息资源流
-----

[](#信息资源流)

```
// 注意：此功能尚未在实际产品上应用验证，慎用

// 配置好config ...
$app = new Application($config);

// Resource操作，传入参数见官方文档说明
$app->resource->submit($data);
$app->resource->delete($path);

// Sitemap操作，传入参数见官方文档说明
$app->site_map->submit($url, $desc, $type, $frequency);
$app->site_map->delete($url);

```

License
-------

[](#license)

MIT License

Copyright (c) 2019-present F.oris

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity19

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity56

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

Total

2

Last Release

2376d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/8820b6ee2969c43692c82f2ad6f0689f03753761c2e992f9619a415741d9abc1?d=identicon)[f-oris](/maintainers/f-oris)

---

Top Contributors

[![itsanr-oris](https://avatars.githubusercontent.com/u/21342121?v=4)](https://github.com/itsanr-oris "itsanr-oris (23 commits)")

---

Tags

baidusmartprogrambaidu-sdksmartprogram-sdk

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/f-oris-easy-smartprogram/health.svg)

```
[![Health](https://phpackages.com/badges/f-oris-easy-smartprogram/health.svg)](https://phpackages.com/packages/f-oris-easy-smartprogram)
```

###  Alternatives

[googleads/googleads-php-lib

Google Ad Manager SOAP API Client Library for PHP

67410.3M25](/packages/googleads-googleads-php-lib)[checkout/checkout-sdk-php

Checkout.com SDK for PHP

553.3M7](/packages/checkout-checkout-sdk-php)[concrete5/core

Concrete core subtree split

19159.3k48](/packages/concrete5-core)[convertkit/convertkitapi

Kit PHP SDK for the Kit API

2167.1k1](/packages/convertkit-convertkitapi)

PHPackages © 2026

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