PHPackages                             yeronghao/jinritemai-sdk - 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. yeronghao/jinritemai-sdk

ActiveLibrary[API Development](/categories/api)

yeronghao/jinritemai-sdk
========================

抖店SDK

315PHP

Since Dec 3Pushed 5y ago1 watchersCompare

[ Source](https://github.com/YeRongHao/jinritemai-sdk)[ Packagist](https://packagist.org/packages/yeronghao/jinritemai-sdk)[ RSS](/packages/yeronghao-jinritemai-sdk/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

自用型抖店SDK
========

[](#自用型抖店sdk)

调用抖店API接口

composer包地址
===========

[](#composer包地址)

```
composer require yeronghao/jinritemai-sdk:dev-master

```

实例化
===

[](#实例化)

```
protected $jinritemai;
/**
 * 初始化 加载抖音SDK
 */
public function __construct()
{
    $options = [
        "app_key" => self::DY_APPKEY,
        "app_secret" => self::DY_APPSERET,
        //抖店ID 目前用于redis的key值
        "toutiao_id" => self::DY_SHOPID
    ];
    $this->jinritemai = new JinritemaiService($options);
}

```

API调用
=====

[](#api调用)

目前只开发了少量的API 具体请查看 JinritemaiService.php 范例: 获取上架的所有商品

```
$this->jinritemai->getProductList();

```

注意事项
====

[](#注意事项)

***一定要去调整 Common.php中的获取 redis(缓存)的方法***

```
    /**
     * Notes:设置缓存
     * @param string $cachename
     * @param mixed $value
     * @return boolean
     */
    public function setCache($cachename,$value){
        //TODO :  按需调整
        $expired = 1800;
        $redis = redis();
        return $redis->setex($cachename,$expired,$value);
    }

    /**
     * Notes:获取缓存
     * @param string $cachename
     * @return mixed
     */
    public function getCache($cachename){
        //TODO :  按需调整
        $redis = redis();
        return $redis->get($cachename);
    }

    /**
     * Notes:清除缓存
     * @param string $cachename
     * @return boolean
     */
    public function removeCache($cachename){
        //TODO :  按需调整
        $redis = redis();
        return $redis->del($cachename);
    }

```

###  Health Score

18

—

LowBetter than 8% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity31

Early-stage or recently created project

 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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/53c583ae3e52d6b9817851e79d1123151fa41fb1e03a8bf13d8a4b15f1c0bb55?d=identicon)[YeRongHao](/maintainers/YeRongHao)

---

Top Contributors

[![SSN-YeChen](https://avatars.githubusercontent.com/u/28284838?v=4)](https://github.com/SSN-YeChen "SSN-YeChen (42 commits)")

---

Tags

doudiandouyinjinritemai

### Embed Badge

![Health badge](/badges/yeronghao-jinritemai-sdk/health.svg)

```
[![Health](https://phpackages.com/badges/yeronghao-jinritemai-sdk/health.svg)](https://phpackages.com/packages/yeronghao-jinritemai-sdk)
```

###  Alternatives

[stripe/stripe-php

Stripe PHP Library

4.0k143.3M475](/packages/stripe-stripe-php)[twilio/sdk

A PHP wrapper for Twilio's API

1.6k92.9M270](/packages/twilio-sdk)[knplabs/github-api

GitHub API v3 client

2.2k15.8M187](/packages/knplabs-github-api)[facebook/php-business-sdk

PHP SDK for Facebook Business

90121.9M34](/packages/facebook-php-business-sdk)[meilisearch/meilisearch-php

PHP wrapper for the Meilisearch API

73813.7M114](/packages/meilisearch-meilisearch-php)[google/gax

Google API Core for PHP

263103.1M453](/packages/google-gax)

PHPackages © 2026

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