xu42/laravel-kuaidiniao

Laravel Wrapper for KuaiDiNiao

1.0.0 2017-12-16 18:52 UTC

This package is auto-updated.

Last update: 2024-10-21 23:24:07 UTC


README

Laravel Wrapper for KuaiDiNiao.

Installing

  1. require library
composer require xu42/laravel-kuaidiniao
  1. config for Laravel
php artisan vendor:publish

Edit the config/kdniao.php file.

  1. 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

  1. Track
KuaiDiNiao::track('SF', '12303940284', 'E201712170000001234');
  1. Follow
KuaiDiNiao::follow('SF', '12303940284', 'E201712170000001234');

Others

Official API Document

License

MIT