PHPackages                             tryiton/tryiton - 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. tryiton/tryiton

ActiveLibrary[API Development](/categories/api)

tryiton/tryiton
===============

Official PHP SDK for the TryItOn virtual try-on API.

10PHP

Since Jun 22Pushed todayCompare

[ Source](https://github.com/tryiton-now/tryiton-php)[ Packagist](https://packagist.org/packages/tryiton/tryiton)[ RSS](/packages/tryiton-tryiton/feed)WikiDiscussions main Synced today

READMEChangelog (1)DependenciesVersions (2)Used By (0)

TryItOn PHP SDK — AI Virtual Try-On API
=======================================

[](#tryiton-php-sdk--ai-virtual-try-on-api)

Official PHP client for the [TryItOn](https://tryiton.now) virtual try-on API. Add photoreal AI virtual try-on for clothing, accessories, hairstyles, and tattoos to your PHP or Laravel application with a few lines of code.

- Virtual clothing try-on and accessory try-on (eyewear, footwear, headwear, jewelry)
- Hairstyle and tattoo try-on
- PSR-4 autoloading, no third-party dependencies (uses cURL), with a built-in job polling helper

Full API reference: [docs.tryiton.now](https://docs.tryiton.now) · Get an API key: [tryiton.now/app/developer](https://tryiton.now/app/developer)

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

[](#installation)

```
composer require tryiton/tryiton
```

Requires PHP 7.4 or later with the `curl` and `json` extensions.

Quickstart: run a virtual try-on
--------------------------------

[](#quickstart-run-a-virtual-try-on)

Submit a garment and a model photo, then wait for the generated result image.

```
