PHP code example of zgldh / workerboy

1. Go to this page and download the library: Download zgldh/workerboy 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/ */

    

zgldh / workerboy example snippets


    $workerBoy = WorkerBoy::getInstance();
    $credential = @$message_data['workerboy_credential'];
    $userId = $workerBoy->validateCredential($credential);
    
/vendor/zgldh/workerboy/config/workerboy.php
start.php
/vendor/zgldh/workerboy/templates/\GatewayBusinessWorkerApplication/start.php
javascript
    <script>
        var WORKERBOY_CREDENTIAL =  echo json_encode(\zgldh\workerboy\WorkerBoy::getInstance()->outputCredential());