定制 onetech/easy-shopee 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

onetech/easy-shopee

最新稳定版本:1.1.1

Composer 安装命令:

composer require onetech/easy-shopee

包简介

README 文档

README

Installing

使用之前,请阅读Shopee开发文档V2 https://open.shopee.com/developer-guide/4

$ composer require onetech/easy-shopee -vvv

Usage

<?php

use Onetech\EasyShopee\Exception\ShopeeException;
use Onetech\EasyShopee\Shopee;

require '../vendor/autoload.php';

$redis = new Redis();
$redis->connect('redis',6379,1);
$redis->auth('secret');

$cache = new \Doctrine\Common\Cache\RedisCache();
$cache->setRedis($redis);

$shopee = new Shopee([
    'app_key' => 'Your Test Partner_id',//int
    'app_secret' => 'Your Test Key',//string
    'debug' => app()->isDebug(),
    'sandbox' => false,
    'log' => [
        'name' => 'Shopee',
        'file' => sys_get_temp_dir() . '/Shopee.log',
        'level' => 'debug',
        'permission' => 0777,
    ],
    'cache' => $cache
]);

关于cache

使用file
$cache = new Doctrine\Common\Cache\FilesystemCache(sys_get_temp_dir());

使用redis
$redis = new Redis();
$redis->connect('redis',6379,1);
$redis->auth('secret');

$cache = new \Doctrine\Common\Cache\RedisCache();
$cache->setRedis($redis);

注意,使用redis作为cache时,Available serializers 需要开启 igbinary序列器

统计信息

  • 总下载量: 2.88k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 2
  • 点击次数: 1
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 2
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2022-12-16

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固