Download the PHP package sharpapi/laravel-tth-ta-product-categories without Composer
On this page you can find all versions of the php package sharpapi/laravel-tth-ta-product-categories. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download sharpapi/laravel-tth-ta-product-categories
More information about sharpapi/laravel-tth-ta-product-categories
Files in sharpapi/laravel-tth-ta-product-categories
Package laravel-tth-ta-product-categories
Short Description AI Tours & Activities Product Categorization for Laravel powered by SharpAPI.com
License MIT
Homepage https://github.com/sharpapi/laravel-tth-ta-product-categories
Informations about the package laravel-tth-ta-product-categories
AI Tours & Activities Product Categorizer for Laravel
This package provides a Laravel integration for the SharpAPI Tours & Activities Product Categorization service. It allows you to automatically categorize tours and activities products with relevance scores, which is perfect for organizing product catalogs, improving search functionality, and enhancing product discovery.
Installation
You can install the package via composer:
Configuration
Publish the config file with:
This is the contents of the published config file:
Make sure to set your SharpAPI key in your .env file:
Usage
Parameters
productName(string): The name of the product to categorizecity(string|null): The city related to the product (optional)country(string|null): The country related to the product (optional)language(string|null): The language for the response (optional)maxQuantity(int|null): Maximum number of categories to return (optional)voiceTone(string|null): The tone of voice for the response (optional)context(string|null): Additional context for better categorization (optional)
Response Format
The response is a JSON string containing categories with weight scores:
The weight score is a value between 1.0 and 10.0, where 10.0 represents 100% relevance.
Features
- Automatically categorizes tours and activities products
- Provides relevance scores for each category
- Supports location-specific categorization with city and country parameters
- Works with multiple languages
- Allows for additional context to improve categorization accuracy
- Helps organize product catalogs and improve search functionality
Credits
- Dawid Makowski
- All Contributors
License
The MIT License (MIT). Please see License File for more information.
All versions of laravel-tth-ta-product-categories with dependencies
ext-json Version *
laravel/framework Version ^10.48.29|^11.0|^12.0|^13.0
sharpapi/php-core Version ^1.0