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);
统计信息
- 总下载量: 2.88k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 2
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2022-12-16
