PHP code example of hughcube / laravel-dingtalk

1. Go to this page and download the library: Download hughcube/laravel-dingtalk library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

hughcube / laravel-dingtalk example snippets


[
    /**
     * default config
     */
    'defaults' => [],

    'robots' => [
        'default' => [
            'enabled' => env('DING_TALK_ROBOT_ENABLED', true),
            'access_token' => env('DING_TALK_ROBOT_ACCESS_TOKEN', ''),
            'secret' => env('DING_TALK_ROBOT_SECRET', ''),
        ]
    ]
]