xu42 / laravel-kuaidiniao
Laravel Wrapper for KuaiDiNiao
1.0.0
2017-12-16 18:52 UTC
Requires
- illuminate/support: ^5.4
This package is auto-updated.
Last update: 2024-10-21 23:24:07 UTC
README
Laravel Wrapper for KuaiDiNiao.
Installing
- require library
composer require xu42/laravel-kuaidiniao
- config for Laravel
php artisan vendor:publish
Edit the config/kdniao.php
file.
- config for Lumen
cp vendor/xu42/laravel-kuaidiniao/src/config.php config/kdniao.php
Edit the bootstrap/app.php
file, add $app->configure('kdniao');
in front of the return $app;
.
Edit the config/kdniao.php
file.
Usage
- Track
KuaiDiNiao::track('SF', '12303940284', 'E201712170000001234');
- Follow
KuaiDiNiao::follow('SF', '12303940284', 'E201712170000001234');