webhubworks / weclapp-api-core
This package houses a generated API client to interact with the Weclapp API.
Fund package maintenance!
webhubworks
3.0.1
2025-05-15 13:11 UTC
Requires
- php: ^8.3
- jane-php/open-api-runtime: ^7.9
Requires (Dev)
- friendsofphp/php-cs-fixer: ^3.75
- jane-php/open-api-3: ^7.9
- laravel/pint: ^1.0
- pestphp/pest: ^3.0
- spatie/ray: ^1.28
README
Generating the Weclapp API client
- Place the OpenAPI spec in
src/config/jane-openapi-php
. - Run
ddev php vendor/bin/jane-openapi generate --config-file=./src/config/jane-openapi.php
- This will generate the API client in
app/Weclapp/generated
- This will generate the API client in
Usage
Example usage:
<?php use Webhub\Weclapp\Client; class WeclappTest extends Command { public function handle() { $weclappClient = Client::create(); $result = $weclappClient->getArticleCount(); ... } }