PHPackages                             hocvt/gradio-client-php - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [API Development](/categories/api)
4. /
5. hocvt/gradio-client-php

ActiveLibrary[API Development](/categories/api)

hocvt/gradio-client-php
=======================

Gradio client for PHP

v1.0.0(2y ago)09MITPHPPHP ^8.1

Since Mar 21Pushed 2y agoCompare

[ Source](https://github.com/vuthaihoc/gradio-client-php)[ Packagist](https://packagist.org/packages/hocvt/gradio-client-php)[ Docs](https://github.com/SergiX44/gradio-client-php)[ GitHub Sponsors](https://github.com/SergiX44)[ RSS](/packages/hocvt-gradio-client-php/feed)WikiDiscussions master Synced 2d ago

READMEChangelog (1)Dependencies (5)Versions (2)Used By (0)

Gradio Client for PHP
=====================

[](#gradio-client-for-php)

[![Latest Version on Packagist](https://camo.githubusercontent.com/648bbbd522bb3befa7c53df57d139c26cb9adfcf6c70d07d297d06470bff749c/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f73657267697834342f67726164696f2d636c69656e742d7068702e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/sergix44/gradio-client-php)[![Tests](https://camo.githubusercontent.com/ee113401a7d3de3410242151a3987b33e151538f34940af9cee2b9cbbe096d1b/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f73657267697834342f67726164696f2d636c69656e742d7068702f72756e2d74657374732e796d6c3f6272616e63683d6d61696e266c6162656c3d7465737473267374796c653d666c61742d737175617265)](https://github.com/sergix44/gradio-client-php/actions/workflows/run-tests.yml)[![Total Downloads](https://camo.githubusercontent.com/e7e140592718a979f4af960fdb9d709a1f0098db41ea8cefe6048b09f720d1c0/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f73657267697834342f67726164696f2d636c69656e742d7068702e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/sergix44/gradio-client-php)

A PHP client to call [Gradio](https://www.gradio.app) APIs.

TODO
----

[](#todo)

- HTTP and WS support
- `predict`
- getConfig
- client options
- hf\_token support
- viewApi
- Finish event system
- Add tests
- Add more examples
- Add documentation

Installation
------------

[](#installation)

You can install the package via composer:

```
composer require sergix44/gradio-client-php
```

Usage
-----

[](#usage)

```
use SergiX44\Gradio\Client;

$client = new Client('https://my-special.hf.space');

$result = $client->predict(['arg', 1, 2], apiName: 'myFunction');
```

Testing
-------

[](#testing)

```
composer test
```

Changelog
---------

[](#changelog)

Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.

Security Vulnerabilities
------------------------

[](#security-vulnerabilities)

Please review [our security policy](../../security/policy) on how to report security vulnerabilities.

Credits
-------

[](#credits)

- [Sergio Brighenti](https://github.com/SergiX44)
- [All Contributors](../../contributors)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

23

—

LowBetter than 26% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity50

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 80% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

835d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/2509658?v=4)[Stupid Dev](/maintainers/vuthaihoc)[@vuthaihoc](https://github.com/vuthaihoc)

---

Top Contributors

[![sergix44](https://avatars.githubusercontent.com/u/4172890?v=4)](https://github.com/sergix44 "sergix44 (28 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (4 commits)")[![vuthaihoc](https://avatars.githubusercontent.com/u/2509658?v=4)](https://github.com/vuthaihoc "vuthaihoc (2 commits)")[![github-actions[bot]](https://avatars.githubusercontent.com/in/15368?v=4)](https://github.com/github-actions[bot] "github-actions[bot] (1 commits)")

---

Tags

sergix44gradio-client-php

###  Code Quality

TestsPest

Code StyleLaravel Pint

### Embed Badge

![Health badge](/badges/hocvt-gradio-client-php/health.svg)

```
[![Health](https://phpackages.com/badges/hocvt-gradio-client-php/health.svg)](https://phpackages.com/packages/hocvt-gradio-client-php)
```

###  Alternatives

[tencentcloud/tencentcloud-sdk-php

TencentCloudApi php sdk

3741.3M46](/packages/tencentcloud-tencentcloud-sdk-php)[neuron-core/neuron-ai

The PHP Agentic Framework.

2.0k656.1k38](/packages/neuron-core-neuron-ai)[avalara/avataxclient

Client library for Avalara's AvaTax suite of business tax calculation and processing services. Uses the REST v2 API.

528.5M7](/packages/avalara-avataxclient)[eslazarev/wildberries-sdk

Wildberries OpenAPI clients (generated).

273.0k](/packages/eslazarev-wildberries-sdk)[files.com/files-php-sdk

Files.com PHP SDK

2481.1k](/packages/filescom-files-php-sdk)[aimeos/prisma

A powerful PHP package for integrating media related Large Language Models (LLMs) into your applications

1943.1k5](/packages/aimeos-prisma)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
