webhubworks / weclapp-api-core
This package houses a generated API client to interact with the Weclapp API.
Installs: 99
Dependents: 1
Suggesters: 0
Security: 0
Stars: 1
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/webhubworks/weclapp-api-core
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
config/jane-openapi-php
. - Run
ddev php vendor/bin/jane-openapi generate --config-file=./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(); ... } }