sawirricardo / replicate-php
PHP client for the Replicate API
Fund package maintenance!
sawirricardo
Requires
- php: ^8.1
- sammyjo20/saloon: ^2.5
Requires (Dev)
- laravel/pint: ^1.2
- pestphp/pest: ^1.20
- spatie/ray: ^1.28
This package is auto-updated.
Last update: 2024-12-10 00:02:14 UTC
README
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.