webhubworks / weclapp-api-laravel
A Laravel wrapper around webhubworks/weclapp-api-core.
Fund package maintenance!
Webhub
3.0.1
2025-05-15 13:53 UTC
Requires
- php: ^8.3
- illuminate/contracts: ^10.0||^11.0||^12.0
- spatie/laravel-package-tools: ^1.16
- webhubworks/weclapp-api-core: 3.0.1
Requires (Dev)
- laravel/pint: ^1.14
- nunomaduro/collision: ^8.1.1||^7.10.0
- orchestra/testbench: ^10.0.0||^9.0.0||^8.22.0
- pestphp/pest: ^3.0
- pestphp/pest-plugin-arch: ^3.0
- pestphp/pest-plugin-laravel: ^3.0
- spatie/laravel-ray: ^1.35
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); } }