A PHP client to call Gradio APIs.
- HTTP and WS support
-
predict
- getConfig
- client options
- hf_token support
- viewApi
- Finish event system
- Add tests
- Add more examples
- Add documentation
You can install the package via composer:
composer require sergix44/gradio-client-php
use SergiX44\Gradio\Client;
$client = new Client('https://my-special.hf.space');
$result = $client->predict(['arg', 1, 2], apiName: 'myFunction');
composer test
Please see CHANGELOG for more information on what has changed recently.
Please review our security policy on how to report security vulnerabilities.
The MIT License (MIT). Please see License File for more information.