PHPackages                             sawirricardo/replicate-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. sawirricardo/replicate-php

ActiveLibrary[API Development](/categories/api)

sawirricardo/replicate-php
==========================

PHP client for the Replicate API

0.0.1(3y ago)3921[4 PRs](https://github.com/sawirricardo/replicate-php/pulls)1MITPHPPHP ^8.1

Since Apr 15Pushed 2y ago1 watchersCompare

[ Source](https://github.com/sawirricardo/replicate-php)[ Packagist](https://packagist.org/packages/sawirricardo/replicate-php)[ Docs](https://github.com/sawirricardo/replicate-php)[ GitHub Sponsors](https://github.com/sawirricardo)[ RSS](/packages/sawirricardo-replicate-php/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (1)Dependencies (4)Versions (5)Used By (1)

PHP client for the Replicate API
================================

[](#php-client-for-the-replicate-api)

[![Latest Version on Packagist](https://camo.githubusercontent.com/90343e0199d6de3b7b1c3a72b7b2a47ae8cefd18e8060b3f480ab4b59d7f0f5c/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f73617769727269636172646f2f7265706c69636174652d7068702e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/sawirricardo/replicate-php)[![Tests](https://camo.githubusercontent.com/b42b433f37b7c825229c73139aff8a2481d4fb5785916ea9e81652cbf809b2e8/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f73617769727269636172646f2f7265706c69636174652d7068702f72756e2d74657374732e796d6c3f6272616e63683d6d61696e266c6162656c3d7465737473267374796c653d666c61742d737175617265)](https://github.com/sawirricardo/replicate-php/actions/workflows/run-tests.yml)[![Total Downloads](https://camo.githubusercontent.com/708c6d6637f5e1834b8b59c47195e02435376f269e6958dc4d75386f51387287/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f73617769727269636172646f2f7265706c69636174652d7068702e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/sawirricardo/replicate-php)

This is a PHP client for Replicate. It lets you run models from your PHP code and do various other things on Replicate.

Support us
----------

[](#support-us)

Investing on this package is defintely a good move from you. You can support by donating to:

PayPal . BCA 8330123584

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

[](#installation)

You can install the package via composer:

```
composer require sawirricardo/replicate-php
```

Usage
-----

[](#usage)

```
$token = 'sxsaxada';
$client = new Sawirricardo\Replicate\Replicate($token);
$prediction = $client->predictions()->create('sd-v1.4', [
    'prompt' => 'my exciting project',
]);

echo $prediction->json('id');
```

Testing
-------

[](#testing)

```
composer test
```

Changelog
---------

[](#changelog)

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

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](https://github.com/spatie/.github/blob/main/CONTRIBUTING.md) for details.

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

[](#security-vulnerabilities)

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

Credits
-------

[](#credits)

- [sawirricardo](https://github.com/sawirricardo)
- [All Contributors](../../contributors)

License
-------

[](#license)

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

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity14

Limited adoption so far

Community14

Small or concentrated contributor base

Maturity46

Maturing project, gaining track record

 Bus Factor2

2 contributors hold 50%+ of commits

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

1129d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/23599e5bcea6210e7c2aa6ab912ab4dc501ca63911cc8a99c46a7b4f57a658ad?d=identicon)[ricardosawir](/maintainers/ricardosawir)

---

Top Contributors

[![sawirricardo](https://avatars.githubusercontent.com/u/37329575?v=4)](https://github.com/sawirricardo "sawirricardo (7 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (4 commits)")[![github-actions[bot]](https://avatars.githubusercontent.com/in/15368?v=4)](https://github.com/github-actions[bot] "github-actions[bot] (4 commits)")

---

Tags

ailearningmachinereplicateartificialintelligencereplicate-phpsawirricardo

###  Code Quality

TestsPest

Code StyleLaravel Pint

### Embed Badge

![Health badge](/badges/sawirricardo-replicate-php/health.svg)

```
[![Health](https://phpackages.com/badges/sawirricardo-replicate-php/health.svg)](https://phpackages.com/packages/sawirricardo-replicate-php)
```

###  Alternatives

[sabatinomasala/replicate-php

PHP client for the Replicate API

3743.6k](/packages/sabatinomasala-replicate-php)[php-science/textrank

TextRank (automatic text summarization) for PHP.

2461.7M3](/packages/php-science-textrank)[wordpress/mcp-adapter

Adapter for Abilities API, letting WordPress abilities to be used as MCP tools, resources or prompts

74855.8k1](/packages/wordpress-mcp-adapter)[deepseek-php/deepseek-php-client

deepseek PHP client is a robust and community-driven PHP client library for seamless integration with the Deepseek API, offering efficient access to advanced AI and data processing capabilities.

47073.9k5](/packages/deepseek-php-deepseek-php-client)[gemini-api-php/client

API client for Google's Gemini API

216221.4k5](/packages/gemini-api-php-client)[chriskonnertz/deeply

DeepLy is a PHP client for the DeepL.com translation API

230116.2k8](/packages/chriskonnertz-deeply)

PHPackages © 2026

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