sawirricardo/replicate-php

PHP client for the Replicate API

0.0.1 2023-04-15 04:10 UTC

README

Latest Version on Packagist Tests Total Downloads

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

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

PayPal https://www.paypal.com/paypalme/sawirricardo. BCA 8330123584

Installation

You can install the package via composer:

composer require sawirricardo/replicate-php

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

composer test

Changelog

Please see CHANGELOG for more information on what has changed recently.

Contributing

Please see CONTRIBUTING for details.

Security Vulnerabilities

Please review our security policy on how to report security vulnerabilities.

Credits

License

The MIT License (MIT). Please see License File for more information.