Weave Code
Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Wide Eyes Bundle Laravel Package

answear/wide-eyes-bundle

View on GitHub
Deep Wiki
Context7

Wide Eyes Bundle

Wide Eyes integration for Symfony.
Documentation of the API can be found here: https://wideeyes.ai/.

Installation

  • install with Composer
composer require answear/wide-eyes-bundle

Answear\WideEyesBundle\AnswearWideEyesBundle::class => ['all' => true],
should be added automatically to your config/bundles.php file by Symfony Flex.

Setup

  • provide required config data: privateKey
# config/packages/answear_wide_eyes.yaml
answear_wide_eyes:
    publicKey: 'your_public_key'

config will be passed to \Answear\WideEyesBundle\Service\ConfigProvider class.

Usage

Similar recommendations

For similar recommendations use SimilarClient and its method getSimilar.

use Answear\WideEyesBundle\Service\SimilarClient;

$similarResponse = $similarClient->getSimilar('uid', 'country');

Your agruments are: uid - your unique id for product and country - country for which products your asking. In result you're getting SimilarResponse that has getUids method - with similar uids returned by api.

Search by image

For search by image use SearchByImageClient.

Detect and features

To detect products on image and find theirs features use detectAndFeatures

use Answear\WideEyesBundle\Service\SearchByImageClient;

$detectAndFeturesResponse = $searchByImageClient->getSimilar('url');

Your agrument is: url - url to the image on which you want to detect products and features. In result you're getting DetectAndFeaturesResponse that contains all detection returned by api.

Search by feature

To search products with previously found feature use searchByFeature

use Answear\WideEyesBundle\Service\SearchByImageClient;

$detectAndFeturesResponse = $searchByImageClient->searchByFeature('featureId', 'label', 'gender', 'filters', 'maxNumResults');

Your agruments are:

  • featureId - featureId you got form DetectAndFeatures
  • label - label you got form DetectAndFeatures
  • gender - gender you got from DetectAndFeatures (optional)
  • filters - result filters (optional)
  • maxNumResults - maximal number of return products (optional)

In result you're getting SearchByFeatureResponse that contains all found products uids meeting your criteria.

Final notes

Feel free to open pull requests with new features, improvements or bug fixes. The Answear team will be grateful for any comments.

Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
adachsoft/changelog-linter
adachsoft/collection
payerurl/telegrambot-crypto-payment-instant-payout
dskripchenko/laravel-hybrid-search
riorizkyrainey/lara-ced
mehedimi/static-vel
zharp/zharp
nonsapiens/bigquery-model-sync
lgu-bayambang-ict-office/lgu-laravel-development-standards
andydefer/laravel-support
se7enxweb/flysystem
lampwick/laravel
jeslage/statamic-emojis
micahdshackelford/rmap-laravel
draftsmaninc/draftsman
square-bit/laravel-volition
himito/laravel-mailman
htinlynn/genius-helper
maco-studios/hephaestus
adachsoft/php-code-style