PHP code example of webhubworks / weclapp-api-laravel

1. Go to this page and download the library: Download webhubworks/weclapp-api-laravel 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/ */

    

webhubworks / weclapp-api-laravel example snippets




namespace App\Console\Commands;

use Illuminate\Console\Command;
use Webhub\WeclappApiLaravel\Facades\Weclapp;

class WeclappTest extends Command
{
    protected $signature = 'weclapp:test';

    protected $description = 'Tests the connection to weclapp';

    public function handle()
    {
        $weclappClient = Weclapp::create();

        $result = $weclappClient->getArticleCount();

        dd($result);
    }
}