Skip to content
This repository has been archived by the owner on Apr 9, 2019. It is now read-only.
/ laravel-youzan Public archive

【停止维护】Youzan wrapper for Laravel

Notifications You must be signed in to change notification settings

overtrue/laravel-youzan

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Laravel Youzan

Youzan wrapper for Laravel.

🚧警告!此 SDK 目前仅支持自用型应用,不支持其它类型的应用接入。 由于有赞的不人道的 996 策略,以及在没有通知用户的情况下关闭了个人收款渠道,现决定不再维护他们家任何相关 SDK,谢谢!

Installing

  1. require package.
$ composer require overtrue/laravel-youzan -vvv
  1. config you apps
$ ./artisan vendor:publish 
# select Overtrue\LaravelYouzan\YouzanServiceProvider and enter.

Edit the config/youzan.php with right content.

Usage

  1. 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']);
  1. 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']);

More usage

PHP 扩展包开发

想知道如何从零开始构建 PHP 扩展包?

请关注我的实战课程,我会在此课程中分享一些扩展开发经验 —— 《PHP 扩展包实战教程 - 从入门到发布》

License

MIT