overtrue / laravel-youzan
Youzan wrapper for Laravel.
Installs: 2 024
Dependents: 0
Suggesters: 0
Security: 0
Stars: 64
Watchers: 1
Forks: 3
Open Issues: 0
Requires
- overtrue/youzan: ~1.0
This package is auto-updated.
Last update: 2020-04-09 11:40:34 UTC
README
Youzan wrapper for Laravel.
🚧警告!此 SDK 目前仅支持自用型应用,不支持其它类型的应用接入。 由于有赞的不人道的 996 策略,以及在没有通知用户的情况下关闭了个人收款渠道,现决定不再维护他们家任何相关 SDK,谢谢!
Installing
- require package.
$ composer require overtrue/laravel-youzan -vvv
- config you apps
$ ./artisan vendor:publish # select Overtrue\LaravelYouzan\YouzanServiceProvider and enter.
Edit the config/youzan.php
with right content.
Usage
- Use Facade
# default app Youzan::post('youzan.shop.create', ['name' => 'Test store']); # specify app name Youzan::app('pet-store')->get('youzan.trade.get', ['tid' => 'xxxxxxx']);
- Use
app()
function helper.
# default app app('youzan')->post('youzan.shop.create', ['name' => 'Test store']); # specify app name app('youzan')->app('pet-store')->get('youzan.trade.get', ['tid' => 'xxxxxxx']);
PHP 扩展包开发
想知道如何从零开始构建 PHP 扩展包?
请关注我的实战课程,我会在此课程中分享一些扩展开发经验 —— 《PHP 扩展包实战教程 - 从入门到发布》
License
MIT