ammazza / webar
Virtual Try on Jewellery for laravel e-commerce solutions
Requires
- guzzlehttp/guzzle: ^7.0.1
This package is not auto-updated.
Last update: 2025-03-11 19:08:31 UTC
README
Introduction
- AMMAZZA is an out-of-box multi-utility product in the market of jewellery with the fusion of AR (Augmented Reality) + AI (Artificial Intelligence) + BI (Business Intelligence).
- By integrating Virtual Try-On feature, customers can try jewellery from anywhere anytime.
- Virtual Try-On is available for Facial and Hand jewelleries like Earrings, Necklace, Sets, Rings, Bracelets.
Prerequisites
- Requires PHP 8.0+ | Laravel 8.0+
- Read the steps for the better understanding of the integration before you try this package(https://www.ammazza.me/integrations/ && https://www.ammazza.me/web-plugin/ -> FAQs)
- To get the virtual tryon, need to fill up this form(https://www.ammazza.me/get-free-tryon/), once the form is submitted with the required details we will email you with the Ammazza portal link and credentials to upload tryon products and images.
- ClientID will be also shared to you with the email. It is required to integrate this package.
- Watch this video to upload Vitrual Try-On Products on Ammazza portal.(https://www.awesomescreenshot.com/video/3734576?key=4ed5de7b67b2bbdd42f88d0763c4da80)
ammazza-webAR-laravel
Incorporate the ammazza-webar-laravel plugin in any of the laravel project
Step 1 : Install package using below command in project root terminal
composer require ammazza/webar
Step 2 : Publish assets for ammaza plugin by running below command
php artisan vendor:publish --tag=public --force
Step 3 : Add client id in your project .env file (Refer Prerequisites to get client id)
AMMAZZA_CLINET_ID=YourClientId
Don't forget to run clear cache after changes in env file
php artisan optimize:clear
Step 4: Now add ammaza script and style to your view/blade file where you want to add tryon button
<link rel="stylesheet" href="{{ asset('css/ammaza-tryon-style.css') }} "/>
<script src="{{ asset('js/ammaza-tryon-scripts.js') }} "></script>
Step 5: Add try on button using below code in view or controller
{!! app('trynow')::getTryOn()!!}
By default it will load all the products for the client id. If you want to show custom products pass product id as below
{!! app('trynow')::getTryOn("YourProductId")!!}