hxsd/ding

ding ding laravel package

v1.0.1 2018-03-15 10:03 UTC

This package is not auto-updated.

Last update: 2024-04-14 03:12:14 UTC


README

Requirements

  • PHP >= 7.0.0
  • Laravel >= 5.5.0

Installation

This package requires PHP 7+ and Laravel 5.5

First, install laravel 5.5

composer require hxsd/ding

add the ServiceProvider to the providers array in config/app.php

\HXSD\Ding\Providers\DingProvider::class,

add this to your facades in app.php

'Ding' => \HXSD\Ding\Facades\Ding::class,

Then run these commands to publish assets and config:

php artisan vendor:publish --provider="HXSD\Ding\Providers\DingProvider"

Configurations

The file config/ding.php contains an array of configurations, you can find the default configurations in there.

'auth_info' => [
    // ding CorpId
    'corp_id' => '',

    // Company secret key
    'corp_secret' => '',

    // sso secret key
    'sso_secret' => '',

    // channel secret key
    'channel_secret' => '',
],