laravel youzan
2.0.1
Youzan wrapper for Laravel.
?warn! This SDK currently only supports self-use applications and does not support other types of application access. Due to Youzan's inhumane 996 policy and the closure of personal payment channels without notifying users, we have now decided not to maintain any related SDKs from them. Thank you!
$ composer require overtrue/laravel-youzan -vvv
$ ./artisan vendor:publish
# select OvertrueLaravelYouzanYouzanServiceProvider and enter.
Edit the config/youzan.php
with right content.
# default app
Youzan:: post ( ' youzan.shop.create ' , [ ' name ' => ' Test store ' ]);
# specify app name
Youzan:: app ( ' pet-store ' )-> get ( ' youzan.trade.get ' , [ ' tid ' => ' xxxxxxx ' ]);
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
Wondering how to build a PHP extension package from scratch?
Please pay attention to my practical course, where I will share some extension development experience - "PHP Extension Pack Practical Tutorial - From Getting Started to Release"
MIT