webhubworks/weclapp-api-laravel

A Laravel wrapper around webhubworks/weclapp-api-core.

3.0.1 2025-05-15 13:53 UTC

This package is auto-updated.

Last update: 2025-05-15 13:55:17 UTC


README

Configuration

Make sure to have set the following environment variables in your .env file:

WECLAPP_API_BASE_URL=
WECLAPP_AUTH_TOKEN=

Usage

Example usage:

<?php

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);
    }
}