PHPackages                             dotxdd/image-stylist - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. dotxdd/image-stylist

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

dotxdd/image-stylist
====================

An AI-powered fashion assistant to describe and analyze clothing for visually impaired users.

018PHP

Since Nov 9Pushed 6mo agoCompare

[ Source](https://github.com/dotxdd/image-stylist)[ Packagist](https://packagist.org/packages/dotxdd/image-stylist)[ RSS](/packages/dotxdd-image-stylist/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

AI Image Stylist
================

[](#ai-image-stylist)

[![License: MIT](https://camo.githubusercontent.com/fdf2982b9f5d7489dcf44570e714e3a15fce6253e0cc6b5aa61a075aac2ff71b/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4c6963656e73652d4d49542d79656c6c6f772e737667)](https://opensource.org/licenses/MIT)

An AI-powered PHP library to describe and analyze clothing items from images, designed specifically to assist visually impaired users in making informed fashion choices.

This tool provides not just a neutral description of a product, but also a personalized style analysis, outfit suggestions, and occasion recommendations, making online shopping more accessible and intuitive.

Features
--------

[](#features)

- **Multi-Image Analysis**: Gathers details from multiple product images for a comprehensive description.
- **Personalized Style Matching**: Compares an item against a user's personal style profile.
- **Structured Data Output**: Returns a clean, easy-to-use PHP object (`StyleAnalysisResult`) with distinct data points.
- **Outfit &amp; Occasion Suggestions**: Provides actionable advice on how to wear an item and where.
- **Provider-Agnostic**: Can be configured to work with any OpenAI-compatible API, including commercial services like OpenAI and free, local models via Ollama.
- **Multi-language Support**: Delivers analysis in the user's preferred language.

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

[](#installation)

You can install the package via Composer:

```
composer require dotxdd/image-stylist
```

How to Use
----------

[](#how-to-use)

The library is designed to be straightforward. Here is a basic example of how to use it with the OpenAI API.

### 1. Initialization

[](#1-initialization)

First, initialize the `ImageStylistService`. You need to provide your API key, the API endpoint, and the model name.

```
