webinvoke / client
A webinvoke webhook client
dev-master
2021-02-06 01:05 UTC
Requires
- php: ^7.4 || ^8.0
- ext-json: *
- ahmard/guzwrap: ^2.1
- nette/utils: ^3.2
Requires (Dev)
- phpstan/phpstan: ^0.12.71
- phpunit/phpunit: ^9.5
This package is auto-updated.
Last update: 2025-04-06 10:10:20 UTC
README
Webinvoke client is a client that provided access to all functionalities provied by Webinvoke Server.
This library uses Guzwrap internally.
Installation
Installation is made using Composer
composer require webinvoke/client
Usage
Before running below code, Webinvoke Server must be started on port 8999.
use Webinvoke\Client\Auth; use Webinvoke\Client\Query; use Webinvoke\Client\Request; use Webinvoke\Client\Server; require 'vendor/autoload.php'; $response = Request::create() ->server(Server::create('http://localhost:8999')) ->auth(Auth::create()->open()) ->query(function (Query $query){ $query->fetchAll(); $query->limit(5); }) ->execute(); var_dump($response->getPayload());